Stop MoveForward and rotate by angle -
05-25-2021, 03:25 AM
Summary of what i can't find how to do:
1. StopMovingForward with CollisionDetection
2. RotateBy random angle
3. Bounce back
The project i want to do:
Want to make 5 meteorites with random sizes and random rotation fall to the ground. This means that the distance to collision with 'Ground' is unknown and the moveforward distance i have to set must be big.
When any falling meteorite hits the ground should stop moving and bounce back (preferably but not necessarly in a sine wave).
Colision detection works but how do i stop the meteorite MoveForward from going trough the 'Ground'? After stopping i want to change direction (rotate it) and move it away from ground.
Stoping it should be something simple but i don't seem to be able to find out how.
Thank You.
|