Thanks for the quick response, but it didn't seem to work, let me elaborate a little, my ball object is being moved by:
MoveEntity balls(1)\obj,0,0,balls(1)\speed
then all I have to do to change its direction is to use:
TurnEntity balls(1)\obj,0,newAngle,0
I then check for collisions using:
Collisions SPHERE, POLY,2,2
CountColl = CountCollisions(balls(1)\obj)
If CountColl<>0 Then
For f=1 To countColl
If EntityCollided(balls(1)\obj,ground) Then
TurnEntity balls(1)\obj,0,bouncedAngle,0
End If
Next
End If
Its the bouncedAngle that I cannot get right.
MoveEntity balls(1)\obj,0,0,balls(1)\speed
then all I have to do to change its direction is to use:
TurnEntity balls(1)\obj,0,newAngle,0
I then check for collisions using:
Collisions SPHERE, POLY,2,2
CountColl = CountCollisions(balls(1)\obj)
If CountColl<>0 Then
For f=1 To countColl
If EntityCollided(balls(1)\obj,ground) Then
TurnEntity balls(1)\obj,0,bouncedAngle,0
End If
Next
End If
Its the bouncedAngle that I cannot get right.