Hi all,
Just getting started here. I have put myself on a basic attempt to make a test game.
What I am trying to accomplish here is to create a single screen game with a bouncing enemy.
A vertical rotating ray will be the enemy boss, and the player must avoid it.
The boss will constantly bounce off the screen edges.
I have 4 invisible walls at the edges, and I can do an initial push on the boss. It has 0 friction, 0 gravity and 1 elasticiy, I think this would mean the boss should bounce infinitely on the edge walls with perfect conservation of energy.
That is not what I am seeing though. The boss bounces off at weird angles, sometimes slides on edges, loses speed, and sometimes crosses through the walls and goes off screen.
Also, I cannot reliably read the boss's velocity.
The problem probably exists between the chair and the keyboard, can anyone help?
Many thanks!
https://1drv.ms/u/s!ArcXERob0wJkg61F2Ywf-SgVRE5f1Q?e=0H4uuB