LUADOC - Farming Simulator 22

Script v1_7_1_0

Engine v1_7_1_0

Foundation Reference

overlapSphere

Description
Overlap sphere objects
Definition
overlapSphere(float x, float y, float z, float radius, string overlapFunctionCallback, object targetObject, integer collisionMask, boolean includeDynamics, boolean includeStatics, boolean exactTest, boolean async)
Arguments
floatxx
floatyy
floatzz
floatradiusradius
stringoverlapFunctionCallbackoverlapFunctionCallback
objecttargetObjecttargetObject (optional)
integercollisionMaskcollisionMask [optional, default=ALL_BITS]
booleanincludeDynamicsincludeDynamics [optional, default=true]
booleanincludeStaticsincludeStatics [optional, default=true]
booleanexactTestexactTest [optional, default=false]
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