PhysicsGetRigidBodies
Jump to navigation
Jump to search
Returns all rigid bodies created in specific physics world.
Syntax
table physicsGetRigidBodies(physics thePhysics)
Required Arguments
- physics: The physics world.
Returns
- table of rigid bodies {rigidBody, rigidBody, rigidBody, ...}
Example
rigidbodies = physicsGetRigidBodies(physics) print("You have created ".. #rigidbodies .." rigidbodies so far!")
See Also
- physicsCreateWorld
- physicsDestroy
- physicsCreateShape
- physicsCreateShapeFromModel
- physicsCreateRigidBody
- physicsCreateStaticCollision
- physicsCreateConstraint
- physicsAddChildShape
- physicsRemoveChildShape
- physicsGetChildShapes
- physicsSetChildShapeOffsets
- physicsGetChildShapeOffsets
- physicsGetShapes
- physicsGetRigidBodies
- physicsGetStaticCollisions
- physicsGetConstraints
- physicsSetProperties
- physicsGetProperties
- physicsDrawDebug
- physicsSetDebugMode
- physicsBuildCollisionFromGTA
- physicsApplyVelocity
- physicsApplyVelocityForce
- physicsApplyAngularVelocity
- physicsApplyAngularVelocityForce
- physicsApplyDamping
- physicsRayCast
- physicsShapeCast
- physicsGetElementType
- physicsIsElement