[Newbie Question] How to create a moveable player object?

TheHolyChicken

14-03-2007 15:59:24

i've just started with ogre newt, and can currently set up new objects in the scene that react correctly with physics, but i don't know how to create a player character that has user interaction. From the information i've managed to scrape together i understand that its something along the lines of giving the player character an ellipsoid collision object, with an up vector so that it wont fall over and it should have no friction to allow free movement? The trouble is I just have no idea how to go about doing this :roll: :oops:

Any help would be very much appreciated, or a link to some kind of newton tutorial that explains character control would be fantastic! I know that this is most certainly a painfully obvious request, apologies in advance :|

nikhil

17-03-2007 08:25:42

if you know how to setup objects, then you must've an idea of how to setup ellipse shape collision body for your character. the next thing you want to learn is 'callbacks' that add force or torque to your objects and help them move..

take a look at http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=3647 (3rd reply) and see if it helps..

nikhil

17-03-2007 08:27:49

also, if you are using the basicFrameListener, pressing F3 will give you a look at as to how your physics bodies look. so try playing with creating ellipsoid around your character and you can press F3 to check if it bounds your player as closely as possible..