A function defined in GMBullet.yy
btRigidBody_create(mass, motionState, collisionShape[, localInertia])
Creates a new instance of a btRigidBody.
Name | Type | Description |
---|---|---|
mass | Real |
The mass of the rigid body. Use 0 to make a static rigid body. |
motionState | Pointer |
A pointer to the btMotionState object representing the motion state for the rigid body. |
collisionShape | Pointer |
A pointer to the btCollisionShape object representing the collision shape for the rigid body. |
localInertia | Pointer |
A pointer to a btVector3 object representing the local inertia for the rigid body. Defaults to (0, 0, 0). |
Pointer
A pointer to the newly created btRigidBody instance.
Copyright © 2024, BlueBurn. Built on October 13, 2024 using GMDoc.