[PB4.31] Car Physics (based on Marco Monster's Tutorial)
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
Can't also play the game. Seems that after start the cars is falling to heaven.
For a microsecond there I can see a circuit wich disappears very fast..
may be it would be usefull to have a home key, to reset all settings..
For a microsecond there I can see a circuit wich disappears very fast..
may be it would be usefull to have a home key, to reset all settings..
-
- Enthusiast
- Posts: 151
- Joined: Tue Apr 01, 2008 3:23 pm
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
@dige:
The problem you describe looks like a bug in the calculation of the loop duration, just as if this value (the number of milliseconds between each loop) was negative, which should be impossible unless you travel in time and/or execute the program inside a supermassive black hole.
Please try to disable the Hi-Def timer by setting the constant #HIDEFTIMER to #False => this returns to the good ol' "ElapsedMilliseconds", which is more predictable.
The problem you describe looks like a bug in the calculation of the loop duration, just as if this value (the number of milliseconds between each loop) was negative, which should be impossible unless you travel in time and/or execute the program inside a supermassive black hole.

Please try to disable the Hi-Def timer by setting the constant #HIDEFTIMER to #False => this returns to the good ol' "ElapsedMilliseconds", which is more predictable.
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
yeah, thats it! ... now it work like a charm - great work!
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
Now at home I tested with 64-bit: Works fine!
@:Kelebrindae: Very good!
@:Cpl.Bator: If you use the code from this thread, you need the sub-folder GUI and media!
Remark: The ATan2-procedure is only for PB!
Gruss
Helle
@:Kelebrindae: Very good!
@:Cpl.Bator: If you use the code from this thread, you need the sub-folder GUI and media!
Remark: The ATan2-procedure is only for PB!
Gruss
Helle
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
I am also running Windows 7 x64.Blue wrote:@All of you above: Are any running this on a 64-bit system ?
-
- Enthusiast
- Posts: 151
- Joined: Tue Apr 01, 2008 3:23 pm
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
I've updated the code for PB4.60, here:
http://keleb.free.fr/codecorner/downloa ... hysics.zip
http://keleb.free.fr/codecorner/downloa ... hysics.zip
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
Excellent. Work fine here.
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
thank you Kelebrindae , thats a great demo. and very usefull
just a few trivial notes
1-the exe file carphysics_x86.exe inside the zip file are for "Telluric Planet Generator v3" and its picture here:
http://s16.postimage.org/igvf54885/planet_gen.jpg
2- in the compiler options there is a check to use JOYSTICK.ICO wich i don't have.
at last that "Telluric Planet Generator v3" seems gorgeous, are there its source here?
thanks
just a few trivial notes
1-the exe file carphysics_x86.exe inside the zip file are for "Telluric Planet Generator v3" and its picture here:
http://s16.postimage.org/igvf54885/planet_gen.jpg
2- in the compiler options there is a check to use JOYSTICK.ICO wich i don't have.
at last that "Telluric Planet Generator v3" seems gorgeous, are there its source here?
thanks
-
- Enthusiast
- Posts: 151
- Joined: Tue Apr 01, 2008 3:23 pm
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
Oooops!applePi wrote:1-the exe file carphysics_x86.exe inside the zip file are for "Telluric Planet Generator v3"

http://keleb.free.fr/codecorner/downloa ... hysics.zip
(and I've included joystick.ico in the zip)
Not yet, because it's unfinished and I've been unable to fix the few problems I've stumbled upon (namely, the seams between the heighmaps)...applePi wrote:at last that "Telluric Planet Generator v3" seems gorgeous, are there its source here?

-
- User
- Posts: 10
- Joined: Sat Dec 10, 2011 7:53 pm
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
hello Kelebrindae
I read your version of simple car physics,
good job.
I'm working on simple car physics too.
Here are one video (the first in the list) if you like.
Next step are the OpenGL car rendering engine.
(I posted a demo today)
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
How ever it's fun and i like your demo.
DJ.
I read your version of simple car physics,
good job.
I'm working on simple car physics too.
Here are one video (the first in the list) if you like.
Next step are the OpenGL car rendering engine.
(I posted a demo today)
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

How ever it's fun and i like your demo.
DJ.
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
It isn't documented , you can try this syntaxd.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![]()
px, py, pz : positionApplyEntityImpulse(#Entity, x, y, z, px, py, pz)
ApplyEntityForce(#Entity, x, y, z, px, py, pz)
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
-
- User
- Posts: 10
- Joined: Sat Dec 10, 2011 7:53 pm
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
you made my day, thank you very mutch.Comtois wrote:It isn't documented , you can try this ...
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.

DJ.
-
- Enthusiast
- Posts: 151
- Joined: Tue Apr 01, 2008 3:23 pm
Re: [PB4.31] Car Physics (based on Marco Monster's Tutorial)
@Comtois:
you've just made my day too! Wow, that's a whole new world of possibilities.
Must. Test. Now.
you've just made my day too! Wow, that's a whole new world of possibilities.
Must. Test. Now.