I'm doing a top down space shooter type game, and I need the player to react to everything in different ways.
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.
asked Feb 04 '10 at 04:36 AM
I'd probably do this:
Hope this covers everything.
answered Feb 04 '10 at 10:04 AM
Just a thought on the player-projectile collision: From what I've seen in other engines --> a problem that the high speed of the projectile could be an issue that it could actually pass through the player/target/etc. between two frames (or physics steps) and collision is not registered. How about ignoring collision (link) between projectile and player and casting a ray instead and triggering your damage and invulnerability this way? Just a thought, so don't mind me if that's not what you want.
answered Feb 04 '10 at 05:27 AM
You can't use isKinematic = true if you want the object to respond to collisions at all.
Would there be any problem in just using a ridigbody (with isKinematic = false) and moving the ship by applying forces? When your projectiles are triggers they shouldn't cause the ship to move.
answered Feb 04 '10 at 09:50 AM