Header menu logo Nu

Physics Module

Miscellaneous physics operations.

Functions and values

Function or value Description

Physics.categorizeCollisionMask categoryMask

Full Usage: Physics.categorizeCollisionMask categoryMask

Parameters:
    categoryMask : string

Returns: int
 Convert a category mask to a value that represents collision categories.
 Examples -
     * = -1
     0 = 0
     1 = 1
     10 = 2
     2 = ERROR - input must be either * or a binary number!
categoryMask : string
Returns: int

Physics.localizePrimitiveBodyShape size bodyShape

Full Usage: Physics.localizePrimitiveBodyShape size bodyShape

Parameters:
Returns: BodyShape

Localize a primitive body shape to a specific size; non-primitive shapes are unaffected.

size : Vector3
bodyShape : BodyShape
Returns: BodyShape

Type something to start searching.