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 / Newton Physics: can't create floor

Author
Message
Uber Ker Noober
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Sheffield, UK
Posted: 25th May 2010 17:23
So I've been messing around with Newton physics and I can make small examples of an object moving along a floor but when I apply it to my game the player object just falls through the floor;


This is a simplified code of the problem;


Thanks in advance
tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 26th May 2010 01:48
Try setting the world size like the demos do.


A 3D marble platformer using Newton physics.
Uber Ker Noober
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Sheffield, UK
Posted: 26th May 2010 02:13
Brilliant, did the trick! Thank you so much!
although now the box rotates extemely quickly. is ther a particular reason for this?
Uber Ker Noober
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Sheffield, UK
Posted: 26th May 2010 14:36
Yeah I can't figure out how to control the player properly? I've compared against the examples and can't see what could be wrong:

tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 26th May 2010 18:26
move_force#=100

That is a lot of force. Check the FPS Demo and Jetpack demo to see ways to make characters move. My game is a marble game so I don't have many issues with movement. Just roll it.


A 3D marble platformer using Newton physics.

Login to post a reply

Server time is: 2026-07-25 08:29:33
Your offset time is: 2026-07-25 08:29:33