I realise the best way to move a physics entity in most engines is to stick to applying forces or impulses, like with the character controller.
I'm not sure that'd best suit my current needs though. I need a box (or something equivalent) to effectively stick to one of my models in xna. So I'd need to be just be setting the position of the box each frame. Will this be a problematic approach?
Moving an entity without forces?
Re: Moving an entity without forces?
Setting the position/orientation will cause the entity to teleport. Since collision response relies on velocities and teleportation involves no velocities, collision response will be very 'squishy' for objects colliding with the teleporter.
If you don't care about collision response for the teleporter, it will work fine.
Using a kinematic entity and setting its velocities such that it reaches the goal state in the next frame would also work. Kinematic entities do have infinite inertia, though, so they would piledrive their way through any obstacles to reach their goal.
If you don't care about collision response for the teleporter, it will work fine.
Using a kinematic entity and setting its velocities such that it reaches the goal state in the next frame would also work. Kinematic entities do have infinite inertia, though, so they would piledrive their way through any obstacles to reach their goal.
Re: Moving an entity without forces?
In my particular situation, collision response for the box isn't an issue at all so teleporting will work fine.
Cheers Norbo.
Cheers Norbo.