Skip to main content
Skip to main content

overlapBoxVector

overlapBoxVector

Description

Overlap box rigid body objects synchronously/blocking Callbacks will be performed before the function returns If the callback function returns true any possible following callbacks will be omitted, and no more work is done Note that a "dynamic" object is considered to be any object which is not static or kinematic Note that supplying false values to all of includeDynamics, includeKinematics and includeStatics will set them all to true

Definition

overlapBoxVector(vector center, vector rotation, vector halfExtents, string callbackFunctionName, object? callbackTargetObject, integer? collisionMask, boolean? includeDynamics, boolean? includeKinematics, boolean? includeStatics, boolean? exactTest)

Arguments

vectorcenter
vectorrotation
vectorhalfExtents
stringcallbackFunctionNameoverlapBoxCallback(nodeId, subShapeIndex) -> boolean continueChecking
object?callbackTargetObject[optional]
integer?collisionMaskcollisionMask [optional, default=ALL_BITS]
boolean?includeDynamicsincludeDynamics [optional, default=true]
boolean?includeKinematicsincludeKinematics [optional, default=true]
boolean?includeStaticsincludeStatics [optional, default=true]
boolean?exactTestWhen true, the overlap uses the precise shape geometry (more accurate but slower). When false, the overlap uses the shapes AABB (faster but not exact) [optional, default=false]

Return Values

integernumShapesnumber of hit shapes, equal to number of performed callbacks