• Create Account

X-Purge 6

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

4 replies to this topic

#1bpj1138  Members

113
Like
0Likes
Like

Posted 22 September 2012 - 01:40 AM

Hello everybody,

I've been working on my 3d verlet engine, and I thought I should share some insight about this before I upload the new version. First of all, if you haven't noticed, the previous versions of the engine would occasionally "BLOW UP" for no apparent reason.

Well, that is what is being addressed in the current version. Things that I have found out in the process are:

1) don't assume the problem is the friction calculation (see below)
2) if the intersection code is faulty, all bets are off, therefore friction calculation can fail as the result
3) most of the errors are caused when velocity vanishes, this means there is no tangent vector!
4) when all else fails, just abort the operation... the next interation will handle it

--bart

#2Cornstalks  Members

7026
Like
0Likes
Like

Posted 22 September 2012 - 02:04 AM

My thoughts? My thoughts are I'm not sure how to respond to this thread. Are you asking for specific feedback about a specific problem/question/potential solution?
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#3bpj1138  Members

113
Like
0Likes
Like

Posted 22 September 2012 - 09:46 PM

My thoughts? My thoughts are I'm not sure how to respond to this thread. Are you asking for specific feedback about a specific problem/question/potential solution?

I'm asking for other people's experiences solving the contact force problem. It seems to me when objects come to rest, which is obviously the solution, velocity goes to zero, therefore, you have to "catch" that condition in the code, which is obviously an invalid condition... velocity is zero, therefore time is zero, or objects are "at rest"...
--bart

#4bpj1138  Members

113
Like
0Likes
Like

Posted 22 September 2012 - 09:55 PM

When such an error occurs, he X-Purge engine will print out an error message, like "tangent not unit"... which means, relative collision velocity was zero, therefore there was no tangent vector. It's always at the extremes where the system fails.
--bart

#5bpj1138  Members

113
Like
0Likes
Like

Posted 22 September 2012 - 10:03 PM

Unfortunately, I just tested the engine again and found it still "BLOWS UP". Stay tuned...
--bart

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.