[ODE] ray changes from 0.5 to 0.6

Pierre-Laurent CHAMBERT pilo.c at wanadoo.fr
Mon Jul 24 01:32:43 MST 2006


I think that m_laserRange is the length of the raycast?
then contact.geom.depth is not a ratio (is that right?) and so if you do 
contact.geom.depth * m_laserRange you'll get bigger value!

I think you just need to keep contact.geom.depth as height value.
On Monday 24 July 2006 05:56, Chris M. wrote:
> Hello, I'm having a problem using 0.6 ODE that I'm not having with 0.5.
>
> I this little world with a ground
> ground = dCreatePlane (world_space, 0, 1, 0, 0);
>
> and i have car driving on it with a laser(ray).  I check for collision with
> only the ground and return the distance.
>
>    	if (dCollide (laser_ray, thisGround, 0, &contact.geom, sizeof
> (dContactGeom)))
> 	{
> 		least_depth = contact.geom.depth * m_laserRange;
> 		printf ("least depth is %f\n", least_depth);
> 	}
>
>
> This works fine in ODE 0.5, but in 0.6 the car drives along with the ray
> returning distances that are extremely large.
>
> Have any changes been made to ray class from 0.5 to 0.6?
>
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list