[ODE] Patch for void dxCylinder::computeAABB()

Morgan McGuire morgan3d at yahoo.com
Sat Feb 4 21:06:03 MST 2006


The current UNSTABLE CVS dxCylinder is missing "final_posr->" in front of
several members (see below).

-m

void dxCylinder::computeAABB()
{
	dReal xrange = dFabs (final_posr->R[0] * radius) +	 dFabs (final_posr->R[1] *
radius) + REAL(0.5)* dFabs (final_posr->R[2] * 
		lz);
	dReal yrange = dFabs (final_posr->R[4] * radius) +   dFabs (final_posr->R[5] *
radius) + REAL(0.5)* dFabs (final_posr->R[6] * 
		lz);
	dReal zrange = dFabs (final_posr->R[8] * radius) +	 dFabs (final_posr->R[9] *
radius) + REAL(0.5)* dFabs (final_posr->R[10] * 
		lz);
	aabb[0] = final_posr->pos[0] - xrange;
	aabb[1] = final_posr->pos[0] + xrange;
	aabb[2] = final_posr->pos[1] - yrange;
	aabb[3] = final_posr->pos[1] + yrange;
	aabb[4] = final_posr->pos[2] - zrange;
	aabb[5] = final_posr->pos[2] + zrange;
}


More information about the ODE mailing list