Skip to content

Entity

Entity represents a physics object that's related to building blocks (inherited by Part and Mesh)

Inherits: Physical

Properties

  • Color: Color
  • CastShadows: boolean
  • IsSpawn: boolean
  • UseGravity: boolean
  • Mass: number
  • Friction: number
  • Drag: number
  • AngularDrag: number
  • Bounciness: number

Methods

AddForce(force: Vector3, mode: ForceModeEnum) → nil

Applies a force to the entity.

AddTorque(force: Vector3, mode: ForceModeEnum) → nil

Applies a rotational force to the entity.

AddForceAtPosition(force: Vector3, position: Vector3, mode: ForceModeEnum) → nil

Applies a force to the entity from a specific position.

AddRelativeForce(force: Vector3, mode: ForceModeEnum) → nil

Adds a force to the part relative to its own rotation.

AddRelativeTorque(torque: Vector3, mode: ForceModeEnum) → nil

Adds a rotational force to the part relative to its own rotation.