Simplified Character Code
Posted: Sun May 04, 2008 10:52 am
Could you possibly post some code for a simplified character. I essentially don't want state models, setting the camera, etc.
From the looks of it you create a box for the feet via 2 rays and then use that box for the feet collision.
Ok so say I had the box made and stored as an entity.
Suppose also this box was stored within my own character (actor) class.
What code would be needed in my (actor) update loop to collide the? I'm guessing a converted version of CharacterController's update. Would it be ok to place that code in an XNA update function instead of a physics update function?
and then just use applyMovementImpulse to move?
Thanks
From the looks of it you create a box for the feet via 2 rays and then use that box for the feet collision.
Ok so say I had the box made and stored as an entity.
Suppose also this box was stored within my own character (actor) class.
What code would be needed in my (actor) update loop to collide the? I'm guessing a converted version of CharacterController's update. Would it be ok to place that code in an XNA update function instead of a physics update function?
and then just use applyMovementImpulse to move?
Thanks