Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Aku_Aku, 7th_zorro, Ayumi), 1,050 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Lack of gravitational acceleration on slopes #60303
12/08/05 09:57
12/08/05 09:57
Joined: Dec 2005
Posts: 17
Denmark
C
ChristianEilsoe Offline OP
Newbie
ChristianEilsoe  Offline OP
Newbie
C

Joined: Dec 2005
Posts: 17
Denmark
www.avalon-rev.dk/ball.cd.rar

gravity works wonders in mid air, but when you release the controls on one of the slopes, the ball just rolls donw at a fixed velocity. I tried changing the friction and damping, no luck.

the controls are W-A-S-D.


Any ideas?

Re: Lack of gravitational acceleration on slopes [Re: ChristianEilsoe] #60304
12/09/05 02:18
12/09/05 02:18
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
Welcome to the Physics forum

GameStudio (like many other physics sims) does not simulate rolling friction. The ball rolling down the slope is treated as though it was sliding instead of rolling. You can get the expected acceleration by setting all friction related parameters to their lower limits. This is not recommended for stability reasons though:
Code:

phent_setfriction(my,0);
phent_setdamping(my,0,0)
phent_setelasticity(my,40,1000);


For more realistic motion you should reduce damping to a low value like 5%. Then utilize events to find the normal of the plane your player is on and give it some extra push downward if it's not level.

Re: Lack of gravitational acceleration on slopes [Re: Marco_Grubert] #60305
12/17/05 22:48
12/17/05 22:48
Joined: Oct 2003
Posts: 160
JAVA Offline
Member
JAVA  Offline
Member

Joined: Oct 2003
Posts: 160
umm marco can you help me i have a problem. My charter can climb shear cliffs but i dont wont him to excead pass a certane steepness i need the code as iam only a begginer ive been asking this question for weeks now and no one has an answer for me.
thank you

Re: Lack of gravitational acceleration on slopes [Re: JAVA] #60306
12/17/05 22:53
12/17/05 22:53
Joined: Oct 2003
Posts: 160
JAVA Offline
Member
JAVA  Offline
Member

Joined: Oct 2003
Posts: 160
oh my got i just looked at the ball and thats amsing phyics. well done


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1