toglia
18-06-2010 17:56:34
Hello again. This post is basically a consequence of this previous one.
I trying to port some of my physx stuff to bullet and its going great so far. I even managed to tweak the CCD so that no tunneling/trespassing occurred at incredible speeds.
Anyway, there is one important thing I have noticed though. In my game I have some "kinematic" actors, they cannot be moved by others but they should be able to move anything in the scene (infinite mass I guess...). I was able to simulate this in bullet by assigning zero mass to them and therefore tying me up to setWorldTransform to move them. So far so good.
But what I found is that I cannot be too creative when moving these kinematic actors cause tunneling will certainly occur. And this makes sense cause if my delta Position is too big and my actor is too small, the kinematic body wont be able to touch the actor at all. This of course is not the case of dynamic actors accompanied with physics actions like applyForce, Torque etc, where this is prevented.
So basically, What I want is to be able to use applyForce/Torque in my "kinematic" (infinite massed objects), or setting dynamic actors to god mode, is there another way?
EDIT: In physx I could lift a tag that lock solidly the position of my actors, or the rotations, this is very helpful.
I trying to port some of my physx stuff to bullet and its going great so far. I even managed to tweak the CCD so that no tunneling/trespassing occurred at incredible speeds.
Anyway, there is one important thing I have noticed though. In my game I have some "kinematic" actors, they cannot be moved by others but they should be able to move anything in the scene (infinite mass I guess...). I was able to simulate this in bullet by assigning zero mass to them and therefore tying me up to setWorldTransform to move them. So far so good.
But what I found is that I cannot be too creative when moving these kinematic actors cause tunneling will certainly occur. And this makes sense cause if my delta Position is too big and my actor is too small, the kinematic body wont be able to touch the actor at all. This of course is not the case of dynamic actors accompanied with physics actions like applyForce, Torque etc, where this is prevented.
So basically, What I want is to be able to use applyForce/Torque in my "kinematic" (infinite massed objects), or setting dynamic actors to god mode, is there another way?
EDIT: In physx I could lift a tag that lock solidly the position of my actors, or the rotations, this is very helpful.