Sign in to follow this  
Kaze

ODE spamming "vector has zero size"

Recommended Posts

Google turns up a lot of results but no definitive explanation for what causes it or what to do about it. Also of note that I'm using the tao C# wrapper so I can't use a lot of the low level hacks suggested in some of the google results. Can anyone else shed some more light on this?

Share this post


Link to post
Share on other sites
a normalisation gone wrong? Spamming the debugger output should only occur in debug builds though.

If you have a mesh, look for degenerate triangles (area of triangle roughly 0). If you do a cross product of two edges, get the length (squared) and the result is around 0, you have a degenerate triangle.

Share this post


Link to post
Share on other sites
Currently I'm not using trimeshes, dBodyAddTorque seems to be involved but I don't know if its the root cause or just triggers it. Usually its just console spam but after a while it will completely break the simulation.

EDIT:
just a update it seems like setting a mass or density lower than .01 can get interpreted as 0 mass or 0 rotational inertia

[Edited by - Kaze on August 19, 2008 5:32:54 PM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this