GetVelocity#
- ExportRoomPlayerController.GetVelocity()#
プレイヤーの Rigidbody の速度を取得します。 プレイヤーが存在しない場合は
Vector3.zero
を返します。- Returns:
プレイヤーの Rigidbody の速度[m/s]
- Return type:
Example#
print("Velocity: "..tostring(playerController.GetVelocity()))
プレイヤーの Rigidbody の速度を取得します。
プレイヤーが存在しない場合は Vector3.zero
を返します。
プレイヤーの Rigidbody の速度[m/s]
print("Velocity: "..tostring(playerController.GetVelocity()))