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 / Anyone have a good code for sliding collision?

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 22nd Feb 2013 16:06 Edited at: 22nd Feb 2013 16:07
I have bin trying this to work ok in agk and no luck

Works great on walls but cant climb small stairs ok?

So i ended up with this and its no good and uses to much resources.

This can walk up and down stairs but is buggy on corners.


I nead raycasting as i have curved corners in the map .

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Feb 2013 16:15
Here's some I was using but you might need to set up some variables / UDT's to use it:



this.mess = abs(sin(times#))
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 22nd Feb 2013 17:31
Thats nice bax
How well does it perform on mobiles where the framerate could dropp down to 30-40 fps ?

This have bin the main problem so far with my samples as they play nice on higher framerates but terrible on low

I ended up with this one so far that seams to work on all framerates?


I will add it to the codebase later on and this is how it looks ingame.


Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz

Login to post a reply

Server time is: 2024-05-02 22:19:12
Your offset time is: 2024-05-02 22:19:12