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.

AppGameKit Classic Chat / StepPhysics

Author
Message
mrradd
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: CA, USA
Posted: 8th Jan 2016 15:17
Ever since I started using AGK2 I've always used StepPhysics(.2), because I fealt (is that even a word in English???) the gravity simulation seemed like Moon gravity. Is this a bad thing to do?
make -C ../NagGaCreMo/2016 -f aGame.mk
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 8th Jan 2016 16:08
Your scale is probably off. Try tweaking the default 0.2 to something that works better with your simulation (change it with SetPhysicsScale( scale ) ). If you know how big your objects are supposed to be in the real world, then it is possible to calculate the correct scale setting. Docs: http://www.appgamekit.com/documentation/Reference/2DPhysics/SetPhysicsScale.htm
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
mrradd
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: CA, USA
Posted: 8th Jan 2016 17:30
I never considered scale. I'll change that one line of code, but it's sssooooo difficult

Login to post a reply

Server time is: 2024-11-17 02:40:18
Your offset time is: 2024-11-17 02:40:18