Esempio n. 1
0
 public ODERayCastRequestManager(ODEScene pScene)
 {
     m_scene      = pScene;
     nearCallback = near;
     ray          = SafeNativeMethods.CreateRay(IntPtr.Zero, 1.0f);
     SafeNativeMethods.GeomSetCategoryBits(ray, 0);
     Box = SafeNativeMethods.CreateBox(IntPtr.Zero, 1.0f, 1.0f, 1.0f);
     SafeNativeMethods.GeomSetCategoryBits(Box, 0);
     Sphere = SafeNativeMethods.CreateSphere(IntPtr.Zero, 1.0f);
     SafeNativeMethods.GeomSetCategoryBits(Sphere, 0);
     Plane = SafeNativeMethods.CreatePlane(IntPtr.Zero, 0f, 0f, 1f, 1f);
     SafeNativeMethods.GeomSetCategoryBits(Sphere, 0);
 }
 public ODERayCastRequestManager(OdeScene pScene)
 {
     m_scene      = pScene;
     nearCallback = near;
 }