Joseph Duchesne
2004.10.23, 06:23 PM
I need a function to reflect off a circle at the point of impact.
Here's the basic way I want it to work:
void reflect(float AngleBetweenCircleAndPoint, float *PointMovementAngle)
{
//calculate stuffs here
PointMovementAngle=TheEndResult;
return;
}
I can also use the x and y position of both the point of the circle and point as well as their speeds. Anyone?
Thanks.
Here's the basic way I want it to work:
void reflect(float AngleBetweenCircleAndPoint, float *PointMovementAngle)
{
//calculate stuffs here
PointMovementAngle=TheEndResult;
return;
}
I can also use the x and y position of both the point of the circle and point as well as their speeds. Anyone?
Thanks.