Quantcast
Channel: Latest Questions by dhendrix
Viewing all articles
Browse latest Browse all 42

Arcade Physics and colliders

$
0
0

I'm doing a top down space shooter type game, and I need the player to react to everything in different ways.

  • For walls, collide and stop movement (unity handles this well with a primitive collider for the wall)
  • For projectiles, damage and brief invulnerability(which is easily handled with scripting), but I do not want the player to be pushed in any way at all, but I still need to detect the actual collision
  • For enemies, I'd like a slight bounce of each other, but nothing too crazy(maybe larger enemies not moving at all)

So what are the best colliders to use? I've tried primitive + Rigidbody with isKinematic = true, this gets me close, but I go right through static walls, and movement with transform just doesn't seem as smooth as adding a force to a rigidbody. Sorry if this question seems long.


Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>