| Property |
Description |
| aabb |
Get the world AABB that bounds this chain.
The bounds of the shape is inflated slightly due to speculative collision detection.
The inflation is smaller on Static shape types however it is not zero due to time-of-impact collision detection.
If an exact AABB is required then you can retrieve that via the shape geometry.
|
| body |
The body which the chain is attached to.
|
| bounciness |
The bounciness of the chain.
Usually this is within the range [0, 1]. Values higher than 1 will result in energy being added which can lead to an unstable simulation.
|
| bouncinessMixing |
Defines the method used when mixing the friction values of two shapes to form a shape contact.
This is assigned to the current PhysicsShape.surfaceMaterial.
|
| callbackTarget |
Get/Set the System.Object that callbacks for the shapes owned by this chain will be sent to.
Care should be taken with any System.Object assigned as a callback target that isn't a UnityEngine.Object as this assignment will not in itself keep the object alive and can be garbage collected.
To avoid this, you should have at least a single reference to the object in your code.
This includes the following events:
A ContactFilterEvent with call IContactFilterCallback.A PreSolveEvent with call IPreSolveCallback.A TriggerBeginEvent with call ITriggerCallback.A TriggerEndEvent with call ITriggerCallback.A ContactBeginEvent with call IContactCallback.A ContactEndEvent with call IContactCallback. |
| friction |
The friction of the owned chain shapes.
Usually this is within the range [0, 1]. Values higher than 1 will result in energy being added which can lead to an unstable simulation.
|
| frictionMixing |
Defines the method used when mixing the friction values of two shapes to form a shape contact.
This is assigned to the current PhysicsShape.surfaceMaterial.
|
| isOwned |
Get if the chain is owned.
See PhysicsChain.SetOwner.
|
| isValid |
Check if the shape is valid.
|
| segmentCount |
Get the number of Chain segments that this chain has created and owns.
See PhysicsShape.ShapeType.ChainSegment.
|
| userData |
Get/Set PhysicsUserData that can be used for any purpose.
The physics system doesn't use this data, it is entirely for custom use.
|
| world |
Get the world the chain is attached to.
|