Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue May 22, 2012 2:02 pm 
Offline

Joined: Tue May 22, 2012 11:44 am
Posts: 2
Hello,

I'm trying to port a game from pc to mobilephones. It's seems ok except the gravity force (set as (0,-9.8,0) appears to be very weak, resulting in the hair as it's in the water.(but it's good in pc)

Increasing the gravity value to compensate by a factor of 100 seems to get 'better' (i.e more realistic) results but I sense this isn't really the correct way to go. Is there something I'm missing to all of this..?

i'm compiled the bullet with -O2 and added the -fno-regmove CFLAG. Using the method mWorld->stepSimulation(sec, 30); the sec is around 0.06.

Any help would be greatly appreciated. Thanks!


Top
 Profile  
 
PostPosted: Wed May 23, 2012 4:05 am 
Offline

Joined: Tue May 22, 2012 11:44 am
Posts: 2
I changed the step method to

mWorld->stepSimulation(1/15, 0);

and it's ok now


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group