Skip to main content
Member of ML.SDK.MLPlayer
Method

void MLPlayer.SetGravityAxis(Vector3 axis, bool relativeToPlayer)

 void MLPlayer.SetGravityAxis(Vector3 axis, bool relativeToPlayer);

Parameters

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

Returns

void

Summary

Set the gravity axis of the player.