Loading...

Logo
DocumentationBehaviorsPhysicsGet Physics Properties
Physics

Get Physics Properties

Last updated September 27, 2018

Description

Get the mass, bounciness, friction, air resistance, physics mode and passable state of an object. When using multiple objects, this will get the total mass and the average bounciness, friction and air resistance of the object.

Properties

Triggers Immediately

Object AThe object(s) you wish to get the physical properties of. By default this is the current object selected. You can change this to any other object in your scene.

Outputs

Mass

The total mass of Object A in kg.

Bounce

The average bounciness amount of Object A (0-100%).

Friction

The average friction amount of Object A (0-100%).

Air Resistance

The average air resistance of Object A (0-100%).

Passable

The passable state of an object. This will output 0 when the object is not passable. Otherwise, this will output 1 when the object is passable.

Physics Mode

The physics mode of an object - "Wall", "Scenery", or "Physics".

Object ID

This outputs the Object ID.

Set Physics Property

The example below is getting the Mass of the objects in the scene.

GetMassReference.gif