using UnityEngine; public class SetRigidbodySettings : MonoBehaviour { public float maxAngular;//1000 private void Start() { Rigidbody[] componentsInChildren = GetComponentsInChildren(); foreach (Rigidbody rigidbody in componentsInChildren) { rigidbody.maxAngularVelocity = maxAngular; rigidbody.maxDepenetrationVelocity = 10000f; } } private void Update() { } }