Skip to content

Physical

Physical represents an object affected by physics in the world.

Inherits: Dynamic

Properties

  • Anchored: boolean
  • CanCollide: boolean
  • Velocity: Vector3
  • AngularVelocity: Vector3

Methods

SetNetworkAuthority(plr: Player) → nil

Sets the network authority of this object to the specified player.

GetTouching() → { Physical }

Get all objects that's currently in contact with this object.

MovePosition(position: Vector3) → nil

Moves the part to the specified position while keeping physics in mind.

MoveRotation(rotation: Vector3) → nil

Rotates the part while keeping physics in mind.

Events

  • Touched: Fires when this object has collide with other object
  • TouchEnded: Fires when this object has stopped colliding with other object
  • MouseEnter: Fires when cursor is hovered on this object. Only fired locally
  • MouseExit: Fires when cursor leaves this object. Only fired locally
  • Clicked: Fires when this object has been clicked by a player