Okay, so I'm learning Unity by making the following bullet hell shmup game prototype, and I need help for the following questions:
- As you may see in the scene view, I'm handling player collission against the stage walls by putting regular box colliders on them (marked in white), but I feel there must be a more efficient way, specially for the next issues.
- When the character moves diagonally against a wall, their horizontal/vertical speed decreases significantly, but I want said decrease to be way lower. Also, when they move towards a wall, sometimes they bounce very slightly against it, which I don't want.
- By the time I add enemies to the game, I want them to only have a hitbox when they're inside the playfield so they don't get shot off stage. I think this (and maybe the solution to my other issues) are done by placing a trigger box collider on the playfield and checking on script if they're inside it, right?
My character has a dynamic rigidbody with a regular box collider attached to it, and their movement is handled via rb.linearVelocity. The stage walls are regular box colliders with static rigidbodies.