Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Yeah, I'm not sure what causes that issue with the getting stuck on walls, I've had it before. I'm just using Unity's built in physics and velocity, so it's as if there's 100% friction when moving towards a wall, even though I assigned a physics material with 0 friction. Yeah, I probably could have created some effect for getting hurt, but for enemies spawning I feel that after a few minutes so many spawn it'd be too much.

Powerups is a neat idea. Maybe increased max health, reduced attack cost or energy regain, larger area of effect, etc, there's good potential there.

(+1)

I might be able to help with that, actually. Are you using Rigidbodies for motion, and if so, are you modifying the velocity directly, as opposed to using AddForce?

(2 edits)

I am indeed using set velocity instead of add force, because add force continues to accelerate, I know there can be a velocity cap on it but I've had major problems with it before, especially with the vertical component when using AddForce. I create a new velocity vector using the y component of the current one, so it's not like I'm overwriting gravity. And the physics materials have no friction (using drag purely for horizontal slowdown), so colliding with a vertical surface shouldn't slow the vertical component of the velocity down, and if it does I'd consider that personally to be a physics bug. I vastly prefer manually modifying the velocity because it gives far more control over the movement. If you wish to discuss more, send me a message on Discord, DreadKyller#6332