You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
Just a quick question. I'm making a physics based game (google Armadillo Run for a basic idea) and I'm trying to make it so if 2 bodies collide with enough force one object and any attached joints will break.
Checking through the documentation has found newton::IMaterialPair in ContactBegin and ContactEnd, which are part of newton::IMaterialCollisionCallback, which gives me a getContactForce() fucntion but according to the docs:
The contact force value is only valid when calculating resting contacts. This means if two bodies collide with non zero relative velocity, the reaction force will be an impulse, which is not a reaction force, this will return zero vector. this function will only return meaningful values when the colliding bodies are at rest.
This has me a bit concerned because I know in most cases neither object will be completely at rest. Is there a better way to get the amount of force on a particular object at the time of collision? I can get both objects fine, they're just the other 2 values that ContactBegin gives me and I've got a fair idea on how to destroy whichever object I like but I just need to see if the force of collision is high enough for either to break. Thanks in advance
Tell me what you cherish most. Give me the pleasure of taking it away.
rogerborg wrote:I'm getting pretty close to abusing my author-oh-tah and just punting all these IrrNewt / Newton questions to Off Topic, boy howdy.
Are you going to do the same with: Havok, Physx, ODE and Bullet users and the respective wrappers. Or this only apply to Irrlicht users who use IrrNewt and/or Newton.
rogerborg wrote:I have a preternatural intolerance for questions that are asked in sub-optimal ways.
You would think that simply not responding, and letting other users answer will take care of the problem.
rogerborg wrote:You racist.
Wow, I did not see that one coming.
You are the one speaking of intolerance and segregating a group of people for no apparent reason other than they are using a library you dislike, and you call me the racist? Aren’t you projecting your personality on somebody else.
rogerborg wrote:
I have a preternatural intolerance for questions that are asked in sub-optimal ways.
You would think that simply not responding, and letting other users answer will take care of the problem.
rogerborg wrote:
You racist.
Wow, I did not see that one coming.
You are the one speaking of intolerance and segregating a group of people for no apparent reason other than they are using a library you dislike, and you call me the racist? Aren’t you projecting your personality on somebody else.
Ahhhhhhhhhhh... "British" humour
Not that I know what's specifically British about it - but it would be nice if we didnt get a grilling whenever we joke.