LUADOC - Farming Simulator 22

Script v1_7_1_0

Engine v1_7_1_0

Foundation Reference

overlapConvex

Description
Overlap with an arbitrary convex mesh
Definition
overlapConvex(integer shapeId, string overlapFunctionCallback, object targetObject, integer collisionMask, boolean includeDynamics, boolean includeStatics, boolean exactTest, boolean async)
Arguments
integershapeId
stringoverlapFunctionCallbackoverlapFunctionCallback
objecttargetObjecttargetObject (optional)
integercollisionMaskcollisionMask [optional, default=ALL_BITS]
booleanincludeDynamicsincludeDynamics [optional, default=true]
booleanincludeStaticsincludeStatics [optional, default=true]
booleanexactTestexactTest [optional, default=false] (Non-exact is not implemented yet and it will always use exact test)
booleanasyncif true, callback will be called in the next frame and calculations will be done in a background thread [optional, default=false]
Return Values
integernumShapesnumShapes