PhysicsCreateStaticCollision
Jump to navigation
Jump to search
Creates static collision
Syntax
physics-static-collision physicsCreateStaticCollision(physics-shape theShape)
Required Arguments
- theShape : the shape of static collision. Accept all types of shapes.
Returns
Example
Spawns box as ground at center of map
local boxShape = physicsCreateShape(physics, "box",200,200,1) local box = physicsCreateStaticCollision(boxShape) physicsSetProperties(box, "position", 0,0,1.8)
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