Script v1.4.4.0
Engine v7.0.0.2
- General
- Entity
- Node
- Scenegraph
- Lighting
- Camera
- Shape
- Particle System
- Physics
- Spline
- Animation
- Overlays
- Sound
- Input
- XML
- Network
- Callbacks
- createFunctionName
- draw
- init
- keyEvent
- mouseEvent
- onContactFunctionName
- packetReceived
- raycastFunctionName
- triggerFunctionName
- update
- Text Rendering
- Terrain Detail
- Tire Track
- Editor
- Rendering
- String
- Math
- I3D
- Fillplanes
Foundation Reference
raycastFunctionName
DescriptionThis function is called when a raycast hit event occurs.Definition
See raycastAll and raycastClosest
raycastFunctionName(integer hitObjectId, float x, float y, float z, float distance, float nx, float ny, float nz, integer subShapeIndex)Arguments
integer | hitObjectId | id of the hit node |
float | x | world impact x |
float | y | world impact y |
float | z | world impact z |
float | distance | distance |
float | nx | world normal x (only valid if generatenormal was true) |
float | ny | world normal y (only valid if generatenormal was true) |
float | nz | world normal nz (only valid if generatenormal was true) |
integer | subShapeIndex | sub shape index of destructible object. negative if normal rigid body (check for subshapeindex >= 0) |
boolean | continue | continue raycasting |