EntPhysics

Physics
Creates or joins a PhysicsBody on play mode

ID: EntPhysics
Required By: Movement, Set Body Mass, Set Center Of Mass, Set Mass
Base Type: Entity Component

Values

Name

Type

Description

Material Break

Bool Variable

Set if it should break based on it's physics material settings (Break On Damage / Break on Impact)

Physics Material

Physics Material Variable

Physics Sound

Physics Sound Type Variable

Sounds for collision - default set by PhysicsMaterial

Methods

Name

Description

Set Velocity(Vector3 newVelocity)

Set Angular Velocity(Vector3 newVelocity)

Add Force(Vector3 force, Force Mode mode, Bool relativeToSelf)

Add Force At Position(Vector3 force, Vector3 position, Force Mode mode)

Add Torque(Vector3 force, Force Mode mode, Bool relativeToSelf)

Properties

Name

Type

Description

Mass

Number

Returns mass based on volume / physics material

Center Of Mass

Vector3

Physics Body

PhysicsBody