Rigidbodies layer change

This commit is contained in:
SDraw 2023-09-24 18:03:47 +03:00
parent 9330f25373
commit 14e01e692e
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
4 changed files with 4 additions and 3 deletions

View file

@ -263,6 +263,7 @@ namespace ml_prm
l_body.drag = (Utils.IsWorldSafe() ? Settings.MovementDrag : 1f);
l_body.useGravity = (!Utils.IsWorldSafe() || Settings.Gravity);
l_body.collisionDetectionMode = CollisionDetectionMode.ContinuousDynamic;
l_body.gameObject.layer = LayerMask.NameToLayer("PlayerLocal");
}
CharacterJoint l_joint = l_puppetTransforms[i].GetComponent<CharacterJoint>();