Exemplo n.º 1
0
    private void OnEnable()
    {
        _inputActions.Enable();

        _rigidbody.collisionDetectionMode = CollisionDetectionMode.Continuous;
        _rigidbody.angularDrag            = AngularDrag;
        _rigidbody.isKinematic            = false;
    }
Exemplo n.º 2
0
    private void OnEnable()
    {
        _inputActions.Enable();

        Rigidbody _rigidbody = GetComponent <Rigidbody>();

        _rigidbody.collisionDetectionMode = CollisionDetectionMode.ContinuousSpeculative;
        _rigidbody.angularDrag            = 0.05f;
        _rigidbody.isKinematic            = true;
    }
 private void OnEnable() => _inputActions.Enable();