BEPUphysics.Constraints.SolverGroups.LineSliderJoint.LineSliderJoint C# (CSharp) Метод

LineSliderJoint() публичный Метод

Constructs a new constraint which restricts two degrees of linear freedom and two degrees of angular freedom between two entities.
public LineSliderJoint ( Entity connectionA, Entity connectionB, Microsoft.Xna.Framework.Vector3 lineAnchor, Microsoft.Xna.Framework.Vector3 lineDirection, Microsoft.Xna.Framework.Vector3 pointAnchor ) : BEPUphysics.Constraints.TwoEntity
connectionA BEPUphysics.Entities.Entity First entity of the constraint pair.
connectionB BEPUphysics.Entities.Entity Second entity of the constraint pair.
lineAnchor Microsoft.Xna.Framework.Vector3 Location of the anchor for the line to be attached to connectionA in world space.
lineDirection Microsoft.Xna.Framework.Vector3 Axis in world space to be attached to connectionA along which connectionB can move and rotate.
pointAnchor Microsoft.Xna.Framework.Vector3 Location of the anchor for the point to be attached to connectionB in world space.
Результат BEPUphysics.Constraints.TwoEntity
        public LineSliderJoint(Entity connectionA, Entity connectionB, Vector3 lineAnchor, Vector3 lineDirection, Vector3 pointAnchor)
        {
            if (connectionA == null)
                connectionA = TwoEntityConstraint.WorldEntity;
            if (connectionB == null)
                connectionB = TwoEntityConstraint.WorldEntity;
            PointOnLineJoint = new PointOnLineJoint(connectionA, connectionB, lineAnchor, lineDirection, pointAnchor);
            AngularJoint = new RevoluteAngularJoint(connectionA, connectionB, lineDirection);
            Limit = new LinearAxisLimit(connectionA, connectionB, lineAnchor, pointAnchor, lineDirection, 0, 0);
            Motor = new LinearAxisMotor(connectionA, connectionB, lineAnchor, pointAnchor, lineDirection);
            Limit.IsActive = false;
            Motor.IsActive = false;
            Add(PointOnLineJoint);
            Add(AngularJoint);
            Add(Limit);
            Add(Motor);
        }

Same methods

LineSliderJoint::LineSliderJoint ( ) : BEPUphysics.Constraints.TwoEntity
LineSliderJoint