Author Topic: Slope Physics Tutorial  (Read 14615 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Slope Physics Tutorial
« Reply #15 on: March 30, 2011, 04:11:50 pm »
Quote from: \"ZippyDee\"
Can you explain that a bit more? I think if I can understand exactly what you\'re trying to do, I may be able to help.

Something like this:





Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Slope Physics Tutorial
« Reply #16 on: March 30, 2011, 04:18:03 pm »
Here's a link to my atan routine:
http://ourl.ca/4129/191782
Edit: I added an atan2 routine too.

Also, Deep Thought, would only one side of the square touch the ground and it would just rotate to keep that one side along the tangent of the slope? Or would it rotate to fall onto other sides, too?
« Last Edit: March 31, 2011, 04:08:38 am by ZippyDee »
There's something about Tuesday...


Pushpins 'n' stuff...


Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Slope Physics Tutorial
« Reply #17 on: March 31, 2011, 05:33:34 am »
After talking to builderboy a bit I think I can add another section this afternoon. Also deep can I steal that idea of using a square sprite for something I'm working on?

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Slope Physics Tutorial
« Reply #18 on: March 31, 2011, 05:36:04 am »
If you write some calculated collision detection, I can give you a pretty thorough explanation of how to do your collision reactions. :D
There's something about Tuesday...


Pushpins 'n' stuff...