Spider Enemy Dying in the Air


Author: Austin Anderson
Date: 2/1/24

Problem:
The biggest problem I had this week was that the spider enemy would stay suspended in the air if they died while jumping over a barrier. It seems like a simple fix but with collision and physics, it became very difficult to balance all aspects of the spider enemy before and after death. The spider also functioned correctly on the ground so I had to find a different solution for an air death than a ground death.


Solutions:
Luckily there is already a function in the character movement component that checks if the owner is on the ground, so it was easy enough to check if the spider was grounded. 


Next, I had to stop the movement of the spider and if it was in the air, I needed to simulate physics so the spider would fall to the ground. Originally, the spider would spin out of control once it was shot, but once I constrained the rotation of the spider, it finally fell to the ground as it should.


Get Cyber Siege

Leave a comment

Log in with itch.io to leave a comment.