PhysicsApplyAngularVelocity
Jump to navigation
Jump to search
Applies angular velocity to rigid body
Syntax
bool physicsApplyVelocity( physics-rigid-body theRigidBody, float velocityX, float velocityY, float velocityZ)
Required Arguments
- theRigidBody: rigid body you want to apply velocity
- velocityXYZ: angular velocity you wants to apply
Returns
True if angular velocity got applied, false otherwise.
Example
Spawn box and apply horizontal angular velocity.
local box = physicsCreateShape(physics, "box", 1) local boxrb = physicsCreateRigidBody(box) physicsSetProperties(boxrb, "position", 0,0,5) physicsApplyAngularVelocity(boxrb, 0,0,10)
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