PhysicsRayCast
Jump to navigation
Jump to search
Perform ray cast between two positions.
Syntax
raycast-result physicsRayCast(physics thePhysics, raycast-type theType, float startX, float startY, float startZ, float endX, float endY, float endZ, bool filterBackfaces = false )
Required Arguments
- physics: The physics world.
- raycast-type: Type of raycasting, see Physics raycast type
- startXYZ: Start position.
- endXYZ: End position.
- filterBackfaces : Detect hit of backfaces. TODO, tests needed
Returns
- raycast-result raycast result, see Physics raycast type
Example
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