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.

Newcomers AppGameKit Corner / Friction help

Author
Message
NeedHalp
8
Years of Service
User Offline
Joined: 20th May 2016
Location:
Posted: 11th Jun 2016 22:01
For some reason, I set friction for my sprite and it doesn't seem to have friction. I think the reason is because my sprite is not touching the ground because I set the gravity to 0. Does friction require gravity?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Jun 2016 22:16
Friction works when two surfaces touch, and acceleration due to gravity is part of this equation. If there is no downward force, there is no friction. In zero gravity, your object will simply bounce of the surface.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-11-23 22:40:11
Your offset time is: 2024-11-23 22:40:11