A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: need advice for skateboard physics

  1. #1
    Senior Member
    Join Date
    Jun 2002

    need advice for skateboard physics

    Hi all, I am making a simple skateboard on a half-pipe game, and I need some help with some code. I can get the acceleration and deceleration thing working fine, but its the positon of the board on the hlf pipe which is causing grief. Does anyone have any code for the mathematics for the YPOS of the skateboard as it moves up and down a half pipe? I understand that the further left it goes, the greater the height, but I can't seem to put it down in actionscript.

    nice one, cheers

  2. #2
    Follower squidlips's Avatar
    Join Date
    Oct 2001
    Gladstone, Queesland, Australia
    wrong forum, please move this to the physics thingey.

  3. #3
    Under the influence bvgroote's Avatar
    Join Date
    Nov 2000
    Perth, Australia
    can you figure something out with _rotation

    it could be something simple -

  4. #4
    Illuminatus! fospher.com's Avatar
    Join Date
    Jan 2002
    5th Dimension
    Im afraid its not simple, bvgroote - expect trig and math formulas, budday.

    search for posts by togepy in the games forum - he has done a great skateboard pipe game.

  5. #5
    Senior Member
    Join Date
    Jun 2002
    cheers for that, will do

    i had a feeling it was a difficult algorithm. I've touched on it before, but never went in depth

  6. #6
    Shenanigans JimmyDinner's Avatar
    Join Date
    Mar 2003
    but but but, couldnt you just use some sort of parabolic formula, and compress it? might generate some nice half pipeish movement methinks if compressed enough. and parabolas are easy

    only problem is, it wont go vertical enough.. but you could tweak it up
    Last edited by JimmyDinner; 10-11-2003 at 09:17 PM.

  7. #7
    parabola's don't bottom out enough to simulate a good half pipe, you may need to go to a cubic or quadric equation. Making it into a parametric equation might help too. Move this to Math and Physics and I'll be glad to try and help, but much more info is needed first

    EDIT: stupid me, it's already over there.
    Last edited by yasunobu13; 10-12-2003 at 12:54 AM.

  8. #8
    Watt on Earth? Jemadah's Avatar
    Join Date
    Feb 2001
    Whistler, Canada.

    Yo dude.

    you have probably seen this, http://www.gmaxskateboarding.com but if not check it, also i persume you are a skater, check my site, srp

    Peace dude..

  9. #9
    Phantom Flasher... Markp.com's Avatar
    Join Date
    May 2000
    Moved here. Please do not post technical questions in the coffee lounge.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center