### Author Topic: Slope Physics Tutorial  (Read 10404 times)

0 Members and 1 Guest are viewing this topic.

#### Deep Toaster

• So much to do, so much time, so little motivation
• Administrator
• LV13 Extreme Addict (Next: 9001)
• Posts: 8215
• Rating: +758/-15
##### 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:

#### ZippyDee

• LV8 Addict (Next: 1000)
• Posts: 729
• Rating: +83/-8
• Why not zoidberg?
##### 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...

#### squidgetx

• Food.
• CoT Emeritus
• LV10 31337 u53r (Next: 2000)
• Posts: 1881
• Rating: +503/-17
• rawr.
##### 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?

#### ZippyDee

• LV8 Addict (Next: 1000)
• Posts: 729
• Rating: +83/-8
• Why not zoidberg?
##### 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.
There's something about Tuesday...

Pushpins 'n' stuff...