Main   Class List   Namespace List   Wiki

PhysicsShapeData Class Reference
[Physics]

Defines the properties of a type of PhysicsShape. More...

Inheritance diagram for PhysicsShapeData:
Inheritance graph
[legend]

List of all members.

Public Attributes

Physics

float angularDamping
 Larger values cause rotational velocity to decay over time more quickly.
float angularSleepThreshold
 Angular velocity threshold below which the shape may be put to sleep to save simulation time.
float buoyancyDensity
 The density of this shape for purposes of calculating buoyancy forces. The result of a particular value is relative to the density of the WaterObject it is within.
float friction
 Friction of the shape slowing motion when in contact with a surface.
float linearDamping
 Larger values cause linear velocity to decay over time more quickly.
float linearSleepThreshold
 Linear velocity threshold below which the shape may be put to sleep to save simulation time.
float mass
 Mass of the shape. Set mass to zero to create as a kinematic.
float restitution
 Bounciness of the shape in response to collisions. Normal range is zero to one.
float staticFriction
 Friction of the shape resisting motion when starting at rest.
float waterDampingScale
 While the shape is in water linear and angular dampening will be scaled by this value. It is expected that this value will usually be greater than one.
Media

PhysicsDebrisData Debris
 Name of a PhysicsDebrisData to spawn when destroyed (optional).
PhysicsShapeData destroyedShape
 Name of a PhysicsShapeData to spawn when destroyed (optional).
ExplosionData Explosion
 Name of a ExplosionData to spawn when destroyed (optional).
filename shapeName
 Path to the shape file.
Networking

PhysicsSimType simType
 Controls whether this shape is simulated on the server, client, or both physics simulations.

Detailed Description

Defines the properties of a type of PhysicsShape.

See also:
PhysicsShape.

Member Data Documentation

Larger values cause rotational velocity to decay over time more quickly.

Angular velocity threshold below which the shape may be put to sleep to save simulation time.

The density of this shape for purposes of calculating buoyancy forces. The result of a particular value is relative to the density of the WaterObject it is within.

Name of a PhysicsDebrisData to spawn when destroyed (optional).

Name of a PhysicsShapeData to spawn when destroyed (optional).

Name of a ExplosionData to spawn when destroyed (optional).

Friction of the shape slowing motion when in contact with a surface.

Larger values cause linear velocity to decay over time more quickly.

Linear velocity threshold below which the shape may be put to sleep to save simulation time.

Mass of the shape. Set mass to zero to create as a kinematic.

Bounciness of the shape in response to collisions. Normal range is zero to one.

Path to the shape file.

Controls whether this shape is simulated on the server, client, or both physics simulations.

Friction of the shape resisting motion when starting at rest.

While the shape is in water linear and angular dampening will be scaled by this value. It is expected that this value will usually be greater than one.



Copyright © GarageGames, LLC. All Rights Reserved.