Skip to main content
Skip to main content

overlapConvexPolyhedronAsync

overlapConvexPolyhedronAsync

Description

Overlap rigid body objects with a convex polyhedron shape asynchronously Convexity is not validated If the callback function returns true any possible following callbacks will be omitted 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

overlapConvexPolyhedronAsync(floatArray shapeVertexPositions, string callbackFunctionName, object? callbackTargetObject, integer? collisionMask, boolean? includeDynamics, boolean? includeKinematics, boolean? includeStatics, boolean? exactTest)

Arguments

floatArrayshapeVertexPositionsconvex polyhedron shape to use for overlap. List of points in the format {x0,y0,z0,...,xn,yn,zn}
stringcallbackFunctionNameoverlapConvexAsyncCallback(nodeId, subShapeIndex, isLast) -> boolean continueReporting
object?callbackTargetObjecttargetObject [optional]
integer?collisionMaskcollisionMask [optional, default=ALL_BITS]
boolean?includeDynamicsincludeDynamics [optional, default=true]
boolean?includeKinematicsincludeKinematics [optional, default=true]
boolean?includeStaticsincludeStatics [optional, default=true]
boolean?exactTestexactTest [optional, default=false] (Non-exact is not implemented yet and it will always use exact test)