Пример #1
0
        internal MouseJoint(MouseJointDef def)
            : base(def)
        {
            XForm xf1;
            _bodyB.GetXForm(out xf1);

            _target = def.target;
            _localAnchor = MathUtils.MultiplyT(ref xf1, _target);

            _maxForce = def.maxForce;
            _impulse = Vector2.Zero;

            _frequencyHz = def.frequencyHz;
            _dampingRatio = def.dampingRatio;

            _beta = 0.0f;
            _gamma = 0.0f;
        }
Пример #2
0
        internal MouseJoint(MouseJointDef def)
            : base(def)
        {
            XForm xf1;

            _bodyB.GetXForm(out xf1);

            _target      = def.target;
            _localAnchor = MathUtils.MultiplyT(ref xf1, _target);

            _maxForce = def.maxForce;
            _impulse  = Vector2.Zero;

            _frequencyHz  = def.frequencyHz;
            _dampingRatio = def.dampingRatio;

            _beta  = 0.0f;
            _gamma = 0.0f;
        }