SetGravityAxis
7/14/25Less than 1 minute
MLPlayer.SetGravityAxis(Vector3 axis, boolean relativeToPlayer)
Set the gravity axis of the player.
Parameters:
| Name | Type | Description |
|---|---|---|
| axis | Vector3 | Gravity axis |
| relativeToPlayer | boolean | If 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)
