PhysicsGetStaticCollisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

Returns all static collisions created in specific physics world.

Syntax

table physicsGetStaticCollisions(physics thePhysics)

Required Arguments

  • physics: The physics world.

Returns

  • table of static collisions: {staticCollision, staticCollision, staticCollision, ...}

Example

staticcollisions = physicsGetStaticCollisions(physics)
print("You have created ".. #staticcollisions .." staticcollisions so far!")

See Also