GetVelocity#

ExportRoomPlayerController.GetVelocity()#

プレイヤーの Rigidbody の速度を取得します。 プレイヤーが存在しない場合は Vector3.zeroを返します。

Returns:

プレイヤーの Rigidbody の速度[m/s]

Return type:

Vector3

Example#

print("Velocity: "..tostring(playerController.GetVelocity()))