[ODE] Help using ODE with DirectX

Jon Watte hplus-ode at mindcontrol.org
Thu Aug 26 08:19:15 MST 2004


> dVector3 *verticesODE;
> verticesODE = (dVector3*) malloc(sizeof(dVector3)*numVertices);

> 	dVector3 temp;
> 	verticesODE = &temp;
> 	verticesODE++;


The bug is due to your inappropriate handling of pointers in 
these particular lines. This has nothing to do with ODE. If 
you had stepped through the code in your debugger, looking at 
all the values, you would easily have caught this.

Cheers,

			/ h+




More information about the ODE mailing list