Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / ODE Physics Problems?

Author
Message
Game Master1330
16
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 2nd Dec 2011 19:34
Hey,
I started using ODE Physics, but I am having trouble with gravity. I have made gravity work with a simple map, but i cannot move the play object, as it just goes towards the point of gravity... is there a way to just make the gravitational force pull downwards instead of sideways as well?

At the moment i have


and the player is a dynamic box.

Matt
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 2nd Dec 2011 20:42
do
ode update
sync
loop
Game Master1330
16
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 2nd Dec 2011 22:55
i have that in the loop, but what i mean is, when i move the object forwards, it just moves back straight away, and i was wondering if there was a way of only making y gravity, not x and z...
basjak
14
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 3rd Dec 2011 04:06
notice that you set the world gravity to 0,0,0.

ODE SET WORLD GRAVITY Gx,Gy,Gz
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 3rd Dec 2011 05:11
In other words.... 0,-10,0

me = <3 PHYSX

Game Master1330
16
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 3rd Dec 2011 11:49
lol ty

Login to post a reply

Server time is: 2024-05-02 09:04:10
Your offset time is: 2024-05-02 09:04:10