-
-
If I made it so that its 360 degrees instead of what it is know would that help?
-
Someone atleast say they have not a clue?
-
Alot of help this community is then.
-
Seems like a straightforward physics question.
Basically the angle of incidence is equal to the angle of relection. (1st law of reflection)
The angle subtended between the incoming line and the normal to the surface at the point of impact is the angle of incidence. The angle of relection is the same angle only on the other side of the normal.
A normal is a line at 90º (perpendicular) to the surface.
-
if your mc has it's x velocity before collision controlled by:
xPos:Number = 10
var xSpeed = function(){
mc._x+=xPos;
}
then after collision the velocity will be given by:
mc._x-=xPos;
The same applies to the _y vector
-
In terms of angles.
From your diagram the ball will strike the surface at 90º (to the surface) when n=135 and it will reflect at an angle of -45º (from your figures on the sphere)
Therefore angle of reflection = angle of incidence, or from your values
So if n< 135 then the incident angle = (135-n) and the reflected angle is 45 - (135-n) = -(90+n)
If n>135 the incident angle = (n-135) and the reflected angle = 45 + (n-135) = (n-90)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|