Esempio n. 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;
 }
Esempio n. 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));
        }
Esempio n. 3
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);
		}
Esempio n. 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));
        }
Esempio n. 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);
        }
Esempio n. 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;
		}
Esempio n. 9
0
 public CCorkscrewEventArgs(HingeSliderUpdateDesc pDesc)
 {
     m_Desc = pDesc;
 }
Esempio n. 10
0
 public CUniversalEventArgs(HingeSliderUpdateDesc pDesc)
 {
     m_Desc = pDesc;
 }
Esempio n. 11
0
 public CSliderEventArgs(HingeSliderUpdateDesc pDesc)
 {
     m_Desc = pDesc;
 }
Esempio n. 12
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;
		}
Esempio n. 13
0
		public CCorkscrewEventArgs(HingeSliderUpdateDesc pDesc)
		{
			m_Desc = pDesc;
		}
Esempio n. 14
0
		public CUniversalEventArgs(HingeSliderUpdateDesc pDesc)
		{
			m_Desc = pDesc;
		}
Esempio n. 15
0
		public CSliderEventArgs(HingeSliderUpdateDesc pDesc)
		{
			m_Desc = pDesc;
		}