|
Post by Kipper on Mar 15, 2006 2:16:08 GMT 1
I can't understand this problem.... but I have narrowed it down to this command, it has a real problem making a convex hull out of any object (.x) i've tried. So much of a problem that it just crashes the .exe and dumps me out, leaving an error log file in the directory.
I actually copied exactly the function Walaber's demo uses (demo 4) and wrote a line to generate a hull from a shape and drop it on the terrain in my program.
The demo works, but my function (which is exactly the same) doesnt.
If i change the body to be a cone or a sphere everything works fine (except my body collision is useless).
Any ideas?
|
|
|
Post by Kipper on Mar 15, 2006 11:58:34 GMT 1
I added this line in the function above the 'NDB_NewtonCreateConvexHull` command:
if memblock exist(1) then delete memblock(1)
And it now works. It looks like something isnt clearing up memory properly or something?!
|
|
|
Post by walaber on Mar 15, 2006 16:41:25 GMT 1
that is in the documentation.
that command uses memblocks internally, so you need a line that references memblocks in your source code to force the compiler to include the memblocks code with your .exe.
|
|