Unity:Skipped updating the transform of this Rigidbody because its components are infinite. Could you have applied infinite forces, acceleration or set huge velocity?メモ

AddComponentでHingeJointを追加した際にでてきた。
BreakForceとBreakTorqueがデフォルトだとInfinityだったのでたぶんそれだとおもわれる。
その二つに数値を入れてあげるととりあえずなくなった。

gameObject.AddComponent();
gameObject.GetComponent().connectedBody = Anker.GetComponent();
gameObject.GetComponent().breakTorque = 5f;
gameObject.GetComponent().breakForce = 5f;

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA