#include <CompoundShape.h>
◆ FromSettings()
Initialize sub shape from sub shape settings
- Parameters
-
inSettings | Settings object |
outResult | Result object, only used in case of error |
- Returns
- True on success, false on failure
◆ GetLocalTransformNoScale()
Get the local transform for this shape given the scale of the child shape The total transform of the child shape will be GetLocalTransformNoScale(inScale) * Mat44::sScaling(TransformScale(inScale))
- Parameters
-
inScale | The scale of the child shape (in local space of this shape) |
◆ GetPositionCOM()
Uncompress the center of mass position.
◆ GetRotation()
◆ IsValidScale()
bool CompoundShape::SubShape::IsValidScale |
( |
Vec3Arg | inScale | ) |
const |
|
inline |
Test if inScale is valid for this sub shape.
◆ SetPositionCOM()
Compress the center of mass position.
◆ SetRotation()
◆ SetTransform()
Update the transform of this sub shape
- Parameters
-
inPosition | New position |
inRotation | New orientation |
inCenterOfMass | The center of mass of the compound shape |
◆ TransformScale()
Vec3 CompoundShape::SubShape::TransformScale |
( |
Vec3Arg | inScale | ) |
const |
|
inline |
Transform the scale to the local space of the child shape.
◆ mIsRotationIdentity
bool CompoundShape::SubShape::mIsRotationIdentity |
If mRotation is close to identity (put here because it falls in padding bytes)
◆ mPositionCOM
Float3 CompoundShape::SubShape::mPositionCOM |
Note: Position of center of mass of sub shape!
◆ mRotation
Float3 CompoundShape::SubShape::mRotation |
Note: X, Y, Z of rotation quaternion - note we read 4 bytes beyond this so make sure there's something there.
◆ mShape
◆ mUserData
uint32 CompoundShape::SubShape::mUserData |
User data value (put here because it falls in padding bytes)
The documentation for this struct was generated from the following file: