Пример #1
0
        private float InvokeUserMeshCollisionRayHit(Newton.NewtonUserMeshCollisionRayHitDesc pLineDescData)
        {
            UserMeshCollisionRayHitDesc aUserMeshCollisionRayHitDesc = new UserMeshCollisionRayHitDesc();

            aUserMeshCollisionRayHitDesc.m_NormalOut = new NewtonVector4(pLineDescData.m_NormalOut).ToDirectX();
            aUserMeshCollisionRayHitDesc.m_P0        = new NewtonVector4(pLineDescData.m_P0).ToDirectX();
            aUserMeshCollisionRayHitDesc.m_P1        = new NewtonVector4(pLineDescData.m_P1).ToDirectX();
            aUserMeshCollisionRayHitDesc.m_UserData  = pLineDescData.m_UserData;
            aUserMeshCollisionRayHitDesc.m_UserIdOut = pLineDescData.m_UserIdOut;

            OnUserMeshCollisionRayHit(
                new CUserMeshCollisionRayHitEventArgs(aUserMeshCollisionRayHitDesc));

            return(1.2f);
        }
Пример #2
0
 public CUserMeshCollisionRayHitEventArgs(UserMeshCollisionRayHitDesc pLineDescData)
 {
     m_LineDescData = pLineDescData;
 }
		private float InvokeUserMeshCollisionRayHit(Newton.NewtonUserMeshCollisionRayHitDesc pLineDescData)
		{
			UserMeshCollisionRayHitDesc aUserMeshCollisionRayHitDesc = new UserMeshCollisionRayHitDesc();

			aUserMeshCollisionRayHitDesc.m_NormalOut = new NewtonVector4(pLineDescData.m_NormalOut).ToDirectX();
			aUserMeshCollisionRayHitDesc.m_P0 = new NewtonVector4(pLineDescData.m_P0).ToDirectX();
			aUserMeshCollisionRayHitDesc.m_P1 = new NewtonVector4(pLineDescData.m_P1).ToDirectX();
			aUserMeshCollisionRayHitDesc.m_UserData = pLineDescData.m_UserData;
			aUserMeshCollisionRayHitDesc.m_UserIdOut = pLineDescData.m_UserIdOut;

			OnUserMeshCollisionRayHit(
				new CUserMeshCollisionRayHitEventArgs(aUserMeshCollisionRayHitDesc));

			return 1.2f;
		}
Пример #4
0
		public CUserMeshCollisionRayHitEventArgs(UserMeshCollisionRayHitDesc pLineDescData)
		{
			m_LineDescData = pLineDescData;
		}