/// <summary> /// Initializes a new instance of the <see cref="PrismaticUniversal"/> class on /// the specified <see cref="JointGroup"/>. /// </summary> /// <param name="world">The world on which to place the joint.</param> /// <param name="group">The joint group that will contain the joint.</param> public PrismaticUniversal(World world, JointGroup group) : base(NativeMethods.dJointCreatePU(world.Id, dJointGroupID.Null), world, group) { limitMotor1 = new PrismaticUniversalLimitMotor(this, 0); limitMotor2 = new PrismaticUniversalLimitMotor(this, 1); limitMotor3 = new PrismaticUniversalLimitMotor(this, 2); }
/// <summary> /// Initializes a new instance of the <see cref="LinearMotor"/> class on /// the specified <see cref="JointGroup"/>. /// </summary> /// <param name="world">The world on which to place the joint.</param> /// <param name="group">The joint group that will contain the joint.</param> public LinearMotor(World world, JointGroup group) : base(NativeMethods.dJointCreateLMotor(world.Id, dJointGroupID.Null), world, group) { limitMotor1 = new LinearMotorLimitMotor(this, 0); limitMotor2 = new LinearMotorLimitMotor(this, 1); limitMotor3 = new LinearMotorLimitMotor(this, 2); }
/// <summary> /// Initializes a new instance of the <see cref="Piston"/> class on /// the specified <see cref="JointGroup"/>. /// </summary> /// <param name="world">The world on which to place the joint.</param> /// <param name="group">The joint group that will contain the joint.</param> public Piston(World world, JointGroup group) : base(NativeMethods.dJointCreatePiston(world.Id, dJointGroupID.Null), world, group) { limitMotorP = new PistonLimitMotor(this, 0); limitMotorR = new PistonLimitMotor(this, 1); }
/// <summary> /// Initializes a new instance of the <see cref="PrismaticRotoide"/> class on /// the specified <see cref="JointGroup"/>. /// </summary> /// <param name="world">The world on which to place the joint.</param> /// <param name="group">The joint group that will contain the joint.</param> public PrismaticRotoide(World world, JointGroup group) : base(NativeMethods.dJointCreatePR(world.Id, dJointGroupID.Null), world, group) { limitMotor1 = new PrismaticRotoideLimitMotor(this, 0); limitMotor2 = new PrismaticRotoideLimitMotor(this, 1); }
/// <summary> /// Initializes a new instance of the <see cref="Slider"/> class on /// the specified <see cref="JointGroup"/>. /// </summary> /// <param name="world">The world on which to place the joint.</param> /// <param name="group">The joint group that will contain the joint.</param> public Slider(World world, JointGroup group) : base(NativeMethods.dJointCreateSlider(world.Id, dJointGroupID.Null), world, group) { limitMotor = new SliderLimitMotor(this, 0); }
/// <summary> /// Initializes a new instance of the <see cref="Hinge"/> class on /// the specified <see cref="JointGroup"/>. /// </summary> /// <param name="world">The world on which to place the joint.</param> /// <param name="group">The joint group that will contain the joint.</param> public Hinge(World world, JointGroup group) : base(NativeMethods.dJointCreateHinge(world.Id, dJointGroupID.Null), world, group) { limitMotor = new HingeLimitMotor(this, 0); }