PhysicsApplyVelocityForce

From Multi Theft Auto: Wiki
Revision as of 14:52, 14 February 2020 by CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Accelerate velocity of rigid body. ( i'm not sure is correct explanation ) ==Syntax== <syntaxhighlight lang="lua"> bool physicsApplyVelocityFor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Accelerate velocity of rigid body. ( i'm not sure is correct explanation )

Syntax

bool physicsApplyVelocityForce( physics-rigid-body theRigidBody, float velocityX, float velocityY, float velocityZ [, float relativeX, float relativeY, float relativeZ ] )             

Required Arguments

  • theRigidBody: rigid body you want to apply velocity
  • velocityXYZ: velocity you wants to apply
  • relativeXYZ: relative position, default: 0,0,0

Returns

True if velocity got accelereted, false otherwise.

Example


See Also