PhysicsDestroy

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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