[PB4.31] Car Physics (based on Marco Monster's Tutorial)

Advanced game related topics
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)

Post by Comtois »

d.j.peters wrote:
Normaly i would use OGRE with PureBasic but the most important command
from the physics engine are missing or it isn't documented. (I don't know)

In car physics you have to apply forces and impulse on any point of the rigidbody
but with PB OGRE you can only add forces or impulse to the center of mass :(
It isn't documented , you can try this syntax
ApplyEntityImpulse(#Entity, x, y, z, px, py, pz)
ApplyEntityForce(#Entity, x, y, z, px, py, pz)
px, py, pz : position
Please correct my english
http://purebasic.developpez.com/
d.j.peters
User
User
Posts: 10
Joined: Sat Dec 10, 2011 7:53 pm

Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)

Post by d.j.peters »

Comtois wrote:It isn't documented , you can try this ...
you made my day, thank you very mutch.

But how do you know about none documented command and there are more ?

edit:
I found it out self by looking to the pb lib's with an hex editor. :wink:

DJ.
Kelebrindae
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 01, 2008 3:23 pm

Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)

Post by Kelebrindae »

@Comtois:
you've just made my day too! Wow, that's a whole new world of possibilities.
Must. Test. Now.
Post Reply