Beispiel #1
0
 public NewtonHingeSliderUpdateDesc(HingeSliderUpdateDesc desc)
 {
     m_Accel = desc.m_Accel;
     m_MinFriction = desc.m_MinFriction;
     m_MaxFriction = desc.m_MaxFriction;
     m_Timestep = desc.m_Timestep;
 }
Beispiel #2
0
        public float HingeCalculateStopAlpha(HingeSliderUpdateDesc pDesc, float pAngle)
        {
            Newton.NewtonHingeSliderUpdateDesc aUpdateDesc = new Newton.NewtonHingeSliderUpdateDesc(pDesc);

            aUpdateDesc.m_Accel       = pDesc.m_Accel;
            aUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
            aUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
            aUpdateDesc.m_Timestep    = pDesc.m_Timestep;

            return(Newton.NewtonHingeCalculateStopAlpha(m_Handle,
                                                        aUpdateDesc,
                                                        pAngle));
        }
        public float HingeCalculateStopAlpha(HingeSliderUpdateDesc pDesc, float pAngle)
		{
			Newton.NewtonHingeSliderUpdateDesc aUpdateDesc = new Newton.NewtonHingeSliderUpdateDesc(pDesc);

			aUpdateDesc.m_Accel = pDesc.m_Accel;
			aUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
			aUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
			aUpdateDesc.m_Timestep = pDesc.m_Timestep;

			return Newton.NewtonHingeCalculateStopAlpha(m_Handle,
                aUpdateDesc,
				pAngle);
		}
Beispiel #4
0
        public float CorkscrewCalculateStopAccel(HingeSliderUpdateDesc pDesc,
                                                 float pPosition)
        {
            Newton.NewtonHingeSliderUpdateDesc aHingeSliderUpdateDesc = new Newton.NewtonHingeSliderUpdateDesc(pDesc);

            aHingeSliderUpdateDesc.m_Accel       = pDesc.m_Accel;
            aHingeSliderUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
            aHingeSliderUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
            aHingeSliderUpdateDesc.m_Timestep    = pDesc.m_Timestep;

            return(Newton.NewtonCorkscrewCalculateStopAccel(m_Handle,
                                                            aHingeSliderUpdateDesc,
                                                            pPosition));
        }
Beispiel #5
0
        private uint InvokeCorkscrew(IntPtr pNewtonJoint,
                                     Newton.NewtonHingeSliderUpdateDesc pDesc)
        {
            HingeSliderUpdateDesc aHingeSliderUpdateDesc = new HingeSliderUpdateDesc();

            aHingeSliderUpdateDesc.m_Accel       = pDesc.m_Accel;
            aHingeSliderUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
            aHingeSliderUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
            aHingeSliderUpdateDesc.m_Timestep    = pDesc.m_Timestep;

            OnCorkscrew(new CCorkscrewEventArgs(aHingeSliderUpdateDesc));

            return(1);
        }
Beispiel #6
0
        private uint InvokeUniversal(IntPtr pNewtonJoint,
                                     Newton.NewtonHingeSliderUpdateDesc pDesc)
        {
            HingeSliderUpdateDesc aUpdateDesc = new HingeSliderUpdateDesc();

            aUpdateDesc.m_Accel       = pDesc.m_Accel;
            aUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
            aUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
            aUpdateDesc.m_Timestep    = pDesc.m_Timestep;

            OnUniversal(new CUniversalEventArgs(aUpdateDesc));

            return(1);
        }
		public float CorkscrewCalculateStopAccel(HingeSliderUpdateDesc pDesc,
			float pPosition)
		{
            Newton.NewtonHingeSliderUpdateDesc aHingeSliderUpdateDesc = new Newton.NewtonHingeSliderUpdateDesc(pDesc);

			aHingeSliderUpdateDesc.m_Accel = pDesc.m_Accel;
			aHingeSliderUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
			aHingeSliderUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
			aHingeSliderUpdateDesc.m_Timestep = pDesc.m_Timestep;

			return Newton.NewtonCorkscrewCalculateStopAccel(m_Handle,
				aHingeSliderUpdateDesc,
				pPosition);
		}
		private uint InvokeCorkscrew(IntPtr pNewtonJoint,
			Newton.NewtonHingeSliderUpdateDesc pDesc)
		{
			HingeSliderUpdateDesc aHingeSliderUpdateDesc = new HingeSliderUpdateDesc();

			aHingeSliderUpdateDesc.m_Accel = pDesc.m_Accel;
			aHingeSliderUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
			aHingeSliderUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
			aHingeSliderUpdateDesc.m_Timestep = pDesc.m_Timestep;

			OnCorkscrew(new CCorkscrewEventArgs(aHingeSliderUpdateDesc));

			return 1;
		}
Beispiel #9
0
 public CCorkscrewEventArgs(HingeSliderUpdateDesc pDesc)
 {
     m_Desc = pDesc;
 }
Beispiel #10
0
 public CUniversalEventArgs(HingeSliderUpdateDesc pDesc)
 {
     m_Desc = pDesc;
 }
Beispiel #11
0
 public CSliderEventArgs(HingeSliderUpdateDesc pDesc)
 {
     m_Desc = pDesc;
 }
		private uint InvokeUniversal(IntPtr pNewtonJoint,
			Newton.NewtonHingeSliderUpdateDesc pDesc)
		{
			HingeSliderUpdateDesc aUpdateDesc = new HingeSliderUpdateDesc();

			aUpdateDesc.m_Accel = pDesc.m_Accel;
			aUpdateDesc.m_MaxFriction = pDesc.m_MaxFriction;
			aUpdateDesc.m_MinFriction = pDesc.m_MinFriction;
			aUpdateDesc.m_Timestep = pDesc.m_Timestep;

			OnUniversal(new CUniversalEventArgs(aUpdateDesc));

			return 1;
		}
Beispiel #13
0
		public CCorkscrewEventArgs(HingeSliderUpdateDesc pDesc)
		{
			m_Desc = pDesc;
		}
Beispiel #14
0
		public CUniversalEventArgs(HingeSliderUpdateDesc pDesc)
		{
			m_Desc = pDesc;
		}
Beispiel #15
0
		public CSliderEventArgs(HingeSliderUpdateDesc pDesc)
		{
			m_Desc = pDesc;
		}