BulletRigidBodyConstructionInfo (struct)¶
The BulletRigidBodyConstructionInfo structure provides information to create a rigid body. Setting mass to zero creates a fixed (non-dynamic) rigid body. For dynamic objects, you can use the collision shape to approximate the local inertia tensor, otherwise use the zero vector (default argument) You can use the motion state to synchronize the world transform between physics and graphics objects. And if the motion state is provided, the rigid body will initialize its initial world transform from the motion state, startWorldTransform is only used when you don’t provide a motion state.
Members¶
Scalar | mass | |
BulletMotionState | motionState | When a motionState is provided, the rigid body will initialize its world transform from the motion state In this case, startWorldTransform is ignored. |
Xfo | startWorldTransform | |
BulletCollisionShape | collisionShape | |
Vec3 | localInertia | |
Scalar | linearDamping | |
Scalar | angularDamping | |
Scalar | friction | best simulation results when friction is non-zero |
Scalar | restitution | best simulation results using zero restitution. |
Scalar | linearSleepingThreshold | |
Scalar | angularSleepingThreshold | |
Boolean | additionalDamping | |
Scalar | additionalDampingFactor | |
Scalar | additionalLinearDampingThresholdSqr | |
Scalar | additionalAngularDampingThresholdSqr | |
Scalar | additionalAngularDampingFactor |
Methods¶
BulletRigidBodyConstructionInfo ( in BulletRigidBodyConstructionInfo other ) | |
BulletRigidBodyConstructionInfo ( in Scalar mass, in BulletMotionState motionState, in BulletCollisionShape collisionShape ) | |
BulletRigidBodyConstructionInfo ( in Scalar mass, in BulletMotionState motionState, in BulletCollisionShape collisionShape, in Vec3 localInertia ) | |
BulletRigidBodyConstructionInfo () | |
__construct ! ( in Scalar mass, in BulletMotionState motionState, in BulletCollisionShape collisionShape, in Vec3 localInertia ) | |
BulletRigidBodyConstructionInfo | clone ? () |
Methods in detail¶
BulletRigidBodyConstructionInfo ( in BulletRigidBodyConstructionInfo other )
copy constructor
BulletRigidBodyConstructionInfo ( in Scalar mass, in BulletMotionState motionState, in BulletCollisionShape collisionShape )
BulletRigidBodyConstructionInfo ( in Scalar mass, in BulletMotionState motionState, in BulletCollisionShape collisionShape, in Vec3 localInertia )
BulletRigidBodyConstructionInfo ()
default constructor
BulletRigidBodyConstructionInfo.__construct! ( in Scalar mass, in BulletMotionState motionState, in BulletCollisionShape collisionShape, in Vec3 localInertia )
BulletRigidBodyConstructionInfo BulletRigidBodyConstructionInfo.clone? ()
clone method