SetVelocity
Last-modified: Sun, 21 Nov 2021 11:42:08 JST (889d)
Top > SetVelocity
freeze
概要
Rigidbodyの速度ベクトルを変更する。
パラメータ
Recievers | 対象のRigidbody |
Velocity | 速度ベクトル |
Use World Space | オンの場合、ワールド軸を基準とする。 オフの場合、対象のGameObjectの回転を基準とする。 |
Take Ownership | アクションの前に対象のGameObjectのオーナーシップを取得する。 ※ObjectSyncが付いたGameObjectを動かす場合、Local操作で使用する。 (そうでない場合は使用すべきではない) |
元となるVRC_TriggerのAction名
Udon実装概要
UseWorldSpaceがtrueの場合、Rigidbody.velocityに指定値をセットする。
UseWorldSpaceがfalseの場合、Rigidbody.velocityにRotation×指定値をセットする。