Skip to main content
Skip to main content

overlapConvex

overlapConvex

Description

Overlap rigid body objects with an arbitrary convex mesh 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

overlapConvex(entityId shapeId, string callbackFunctionName, object? callbackTargetObject, integer? collisionMask, boolean? includeDynamics, boolean? includeKinematics, boolean? includeStatics, boolean? exactTest)

Arguments

entityIdshapeIdconvex shape to use for overlap, has to have 'CPU Mesh' flag set
stringcallbackFunctionNameoverlapConvexCallback(nodeId, subShapeIndex) -> boolean continueChecking
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)

Return Values

integernumShapesnumber of hit shapes, equal to number of performed callbacks