overlapConvexPolyhedron
overlapConvexPolyhedron
Description
Overlap rigid body objects with a convex polyhedron shape synchronously/blocking Convexity is not validated 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
overlapConvexPolyhedron(floatArray shapeVertexPositions, string callbackFunctionName, object? callbackTargetObject, integer? collisionMask, boolean? includeDynamics, boolean? includeKinematics, boolean? includeStatics, boolean? exactTest)
Arguments
| floatArray | shapeVertexPositions | convex polyhedron shape to use for overlap. List of points in the format {x0,y0,z0,...,xn,yn,zn} |
|---|---|---|
| string | callbackFunctionName | overlapConvexCallback(nodeId, subShapeIndex) -> boolean continueChecking |
| object? | callbackTargetObject | targetObject [optional] |
| integer? | collisionMask | collisionMask [optional, default=ALL_BITS] |
| boolean? | includeDynamics | includeDynamics [optional, default=true] |
| boolean? | includeKinematics | includeKinematics [optional, default=true] |
| boolean? | includeStatics | includeStatics [optional, default=true] |
| boolean? | exactTest | exactTest [optional, default=false] (Non-exact is not implemented yet and it will always use exact test) |
Return Values
| integer | numShapes | number of hit shapes, equal to number of performed callbacks |
|---|