Basic physics need only

ndoxx

30-03-2008 09:34:30

Hi, i am new to ogreode and currently developing a game engine for MMORPG. I need only basic physics that enable collision and player movement. I came to OgreOde and find it a little bit overkill for my need.

There are some thing i want to ask :
  1. 1. How can i implement just basic physics like gravity and collision detection?
    I have incorporated ogreode to my engine, and i think collision is a little bit overkill. I do not need bouncing on collision, fraction and etc. my only need is if an object collide with other (static object), it does't get through the static object. i can achieve this by set bouncyness to 0, but i don't know if ode still compute this and affect performance, so if there is some setting to turn this feature off, i would like to know.
    [/list:u]
    1. 2. How should i model my character?
      My character should perform basic movement, like walk, run, jump, and strafe (optional)
      Currently, my character is based on character modelling tutorial from ogreode wiki, which consist of capsule and sphere geometry. to walk / run, i apply angular force to the sphere, but, my character would jump when came contact with the terrain. I don't know what is the problem, i have set angular damping, applying downward force (big force would make my character wont move, but small force cant force it to stick to the ground). I have no idea how can i keep my character stick to the ground.
      [/list:u]

      Do anyone ever implement simple physics like that? I would like to know how you implement and model your physics.

      Thanks,
      Ndoxx.

rewb0rn

30-03-2008 16:39:46

These tutorials cover exactly what you are trying to accomplish:

Collision: http://www.ogre3d.org/wiki/index.php/Og ... n_Handling
(return false in collide, so OgreOde will not compute anything for collisions beyond detecting them)
Character modeling: http://www.ogre3d.org/wiki/index.php/Og ... _Character