Re: Any mathematicians out there?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am working on a ricochet function, which allows a shape\object to have a
bounce effect when it hits a wall in a 2 dimensional environment. I'm
confused on how I calculate the angle after it hits the wall. Which
trigonometric function do I use? How do I turn that into coordinates?

I'm not concerned about the speed reduction after it hits; I want to keep
it
simple.

How is the wall defined (coordinates of two points on the line, the equation
of the line itself, something else)? How is the path the object is traveling
on defined (two coordinates along its path, equation of the line the path
makes, something else)? Basically, the angle the path makes with the wall
coming in will equal the angle the path (after impact with the wall) makes
when leaving.

Rick


.



Relevant Pages

  • Re: Any mathematicians out there?
    ... I am working on a ricochet function, which allows a shape\object to have a ... bounce effect when it hits a wall in a 2 dimensional environment. ... confused on how I calculate the angle after it hits the wall. ...
    (microsoft.public.vb.general.discussion)
  • Re: ten best Donovan songs
    ... So, you own Sutras ... It's like I'm talking to a wall. ... Sunshine Superman and Greatest Hits. ...
    (rec.music.dylan)
  • Re: Dirty Spellcaster Tricks
    ... It hits a wall at 75 feet (from me; ... from the Real World that "the angle of incidence is equal to the ...
    (rec.games.frp.dnd)
  • Re: Dirty Spellcaster Tricks
    ... It hits a wall at 75 feet (from me; ... from the Real World that "the angle of incidence is equal to the ...
    (rec.games.frp.dnd)
  • Re: min ||Ax-b|| for large sparse A
    ... So this method is good to go to the trash can. ... I certainly won't use such method if it already hits a wall at this level. ...
    (comp.soft-sys.matlab)