Skip to main content

MLPlayer.SetGravityAxis(Vector3 axis, boolean relativeToPlayer)

Set the gravity axis of the player.

Parameters:

NameTypeDescription
axisVector3Gravity axis
relativeToPlayerbooleanIf true, the given gravity direction applied as relative to player. If false, it will be applied as global direction1.

Usage

---@type MLPlayer
local mlplayer;

---@type Vector3
local axis;

---@type boolean
local relativeToPlayer;


mlplayer.SetGravityAxis(axis, relativeToPlayer)