PhysicsDestroy: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} Use to destroy shape, constraint, static collision or rigid body. If rigid body got destroyed, all connected constraints will destroyed too If...") |
CrosRoad95 (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
Use to destroy shape, constraint, static collision or rigid body. | Use to destroy shape, constraint, static collision or rigid body. | ||
If rigid body got destroyed, all connected constraints will destroyed too | If rigid body got destroyed, all connected constraints will destroyed too. | ||
If shape got destroyed, shape got removed from all compound shapes which uses this shape and all rigid bodies and static collision which uses this shape got destroyed | |||
If shape got destroyed, shape got removed from all compound shapes which uses this shape and all rigid bodies and static collision which uses this shape got destroyed. | |||
==Syntax== | ==Syntax== |
Latest revision as of 16:47, 18 February 2020
Use to destroy shape, constraint, static collision or rigid body.
If rigid body got destroyed, all connected constraints will destroyed too.
If shape got destroyed, shape got removed from all compound shapes which uses this shape and all rigid bodies and static collision which uses this shape got destroyed.
Syntax
bool physicsDestroy( physics-element thePhysicsElement )
Required Arguments
- thePhysicsElement: shape, constraint, static collision or rigid body.
Returns
True if element got destroyed
Example
This example does nothing ¯\_(ツ)_/¯
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