Friday, August 27, 2010

Droids - Shooting

This droid is shooting some kind of lethal glitter attack
I've made small progress with the Droids game. Something to note while playing around was that the CharacterController didn't do much for collisions beyond its movement checks. I added a capsule collider to it that matched the CharacterController's internal collider. This allowed my shots to detect their collision with the droids.

When destroying network shared game objects with Network.Destroy(), be sure to check the networkView's isMine property, otherwise you'll destroy it twice, and Unity doesn't like that.

I haven't updated the web player yet, but the code is still on my Github page. I'll likely update the web player when I get networking working well with it, but for now it crashes due to security problems inside the web player.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.