OgreOde, thanks Monster!
-
- Halfling
- Posts: 64
- Joined: Thu Jul 29, 2004 6:30 pm
OgreOde, thanks Monster!
Well, this is another one of those 'I just got OgreOde working! I want to thank Monster!' threads.
Thanks Monster!
I'm looking forward to Gangsta (heh). But until then OgreOde seems to be just what I was looking for. Why I did not start with it (instead of trying Nogredex and OgreNewt) I don't know, but I should have! Terrain support out of the box, easy integration, very straightforward samples... all the things I needed.
So uh, again... thanks.
- Wraithdrit
Thanks Monster!
I'm looking forward to Gangsta (heh). But until then OgreOde seems to be just what I was looking for. Why I did not start with it (instead of trying Nogredex and OgreNewt) I don't know, but I should have! Terrain support out of the box, easy integration, very straightforward samples... all the things I needed.
So uh, again... thanks.
- Wraithdrit
- monster
- OGRE Community Helper
- Posts: 1098
- Joined: Mon Sep 22, 2003 2:40 am
- Location: Melbourne, Australia
- Contact:
- sinbad
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
- Contact:
Just as an aside, I added MovableObjectFactory support to Dagon over the past few days, so the hack required to OgreMain for ragdolls should no longer be necessary. You can now register your own MovableObject factories, and even override the core ones if you want (e.g. createEntity calls your custom factory to create your custom Entity subclass - caution advised though!). Hope this will help...
-
- Halfling
- Posts: 64
- Joined: Thu Jul 29, 2004 6:30 pm
Okay, starting to add physics support to my robots (heh, I love the robot... it has so grown on me... ). They start out above the terrain and fall down, as intended (yeah). Now, when they get to ground level (I'll actually probably go back and 'set' them at ground level) they topple all over the place.
How do I set them so they always stand upright, no matter the slope of the terrain they are on?
I think it has to do with setting a torque to keep them pointed upward, but in the Ode docs there is information about the loop the physics engine goes through, but I'm not sure where in OgreOde that I set forces on bodies.
Sorry to be such a Physics engine newbie. I'm trying to read and search for the answer, but am coming up with a big old nothing.
I did find the picture you have of a FPS player on your sight Monster, and I think that will be how I implement the infantry setup in my game, but I gotta understand a little more about OgreOde (and Ode in general) before I get to that point.
- Wraithdrit
How do I set them so they always stand upright, no matter the slope of the terrain they are on?
I think it has to do with setting a torque to keep them pointed upward, but in the Ode docs there is information about the loop the physics engine goes through, but I'm not sure where in OgreOde that I set forces on bodies.
Sorry to be such a Physics engine newbie. I'm trying to read and search for the answer, but am coming up with a big old nothing.
I did find the picture you have of a FPS player on your sight Monster, and I think that will be how I implement the infantry setup in my game, but I gotta understand a little more about OgreOde (and Ode in general) before I get to that point.
- Wraithdrit
-
- Halfling
- Posts: 64
- Joined: Thu Jul 29, 2004 6:30 pm
Having dug through the Ode docs, I found that with each step all force and torque is set to zero. Hmm, okay so how and where do I set torque and force?
Found the code for preStep in the sampleScene and the addtorqueandforce() function. Played around with the code till I got that to implement (registered it with the stepper, etc).
Going to try iterating through my robot objects and setting a torque on them to always be up and see if that does what I'm after.
Poke me if I'm not on the right track so I don't waste too much time on this.
- Wraithdrit
Found the code for preStep in the sampleScene and the addtorqueandforce() function. Played around with the code till I got that to implement (registered it with the stepper, etc).
Going to try iterating through my robot objects and setting a torque on them to always be up and see if that does what I'm after.
Poke me if I'm not on the right track so I don't waste too much time on this.
- Wraithdrit
-
- Halfling
- Posts: 95
- Joined: Sun Apr 03, 2005 6:58 pm
Do you have any time frame in mind to when a released version of that will be out. I mean just a rough estimate. Reason being I plan to use OgreODE in our game and if your new library is going to come out in so much time, then I wouldn't want to spend too much time tweaking OgreODE That and not to mention learing all of ODE...unless your new lib will also use ODE, to which I will start early now!monster wrote:Glad you like it!
Gangsta eh?
- walaber
- OGRE Expert User
- Posts: 829
- Joined: Sat Oct 02, 2004 2:20 pm
- Location: California, USA
- Contact:
-
- Halfling
- Posts: 64
- Joined: Thu Jul 29, 2004 6:30 pm
- monster
- OGRE Community Helper
- Posts: 1098
- Joined: Mon Sep 22, 2003 2:40 am
- Location: Melbourne, Australia
- Contact:
@ Drew_Benton
Hopefully it'll be available towards the end of the month.
FYI; at least for the immediate future OgreNewt is likely to better support the specialised features of the Newton engine, whilst Gangsta aims for cross-engine compatibility. And doesn't currently have a specialised terrain collision primitive either.
Hopefully it'll be available towards the end of the month.
FYI; at least for the immediate future OgreNewt is likely to better support the specialised features of the Newton engine, whilst Gangsta aims for cross-engine compatibility. And doesn't currently have a specialised terrain collision primitive either.
-
- Halfling
- Posts: 95
- Joined: Sun Apr 03, 2005 6:58 pm