[ODE] Rotating dRayClass?

Jon Watte (ODE) hplus-ode at mindcontrol.org
Sat Sep 16 12:25:45 MST 2006

Just rotate the direction vector you pass into dGeomSetRay() instead.


          / h+

Kyle Hubert wrote:
> How can I rotate my dRayClass? In particular, I am using the Ray for
> selecting(picking) physics objects based on the user's viewport. I
> have it working nicely for when the "camera" is placed at a location
> with no rotation. Now, when I rotate the camera the point of
> intersection of the ray (the origin hasn't moved) should be rotated.
> Is their an easy way to do this? Like call dGeomRaySet then call
> dGeomSetRotation?
> Thank you.
> -Kyle
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode

More information about the ODE mailing list