Skip to main content
Skip to main content

raycastAllVector

raycastAllVector

Description

Raycast rigid body objects synchronously Callbacks will be performed before the function returns If the callback function returns true any possible following callbacks will be omitted

Definition

raycastAllVector(vector origin, vector direction, float maxDistance, string callbackFunctionName, object? callbackTargetObject, integer? collisionMask)

Arguments

vectororigin
vectordirection
floatmaxDistance
stringcallbackFunctionNameraycastAllCallback(actorId, x, y, z, distance, nx, ny, nz, subShapeIndex, shapeId, isLast) -> boolean continueReporting
object?callbackTargetObject[optional]
integer?collisionMask[optional]

Return Values

integernumShapesnumber of hit shapes, equal to number of performed callbacks