- Home /
Collision no longer occurs after turning off shield (javascript)
I'm encountering a strange issue with my space shooter game (following the Walker Boys tutorial more or less). Collision works correctly with the spaceship before activating the shield and while the shield is activated, and if the shield is re-activated.
I've figured out that
my Z position is not being changed, therefore they spaceship and the astroids ARE colliding.
Other objects do not become triggered by the ship after the shield is off even though the Is triggers are checked and the colliders are setup.
This could potentially be a "unity problem" as yesterday Unity magically fixed this for me. It displayed some error and said "fixing now.." in the console, and this problem was solved.
Possible quirks are that my project folder is on dropbox..so that my friend can get scripts off my project
Player Script: http://pastebin.com/HCasHPBX
Shield Script: http://pastebin.com/T0bhihES
EDIT: I tried adding an OnTriggerEnter function to my player script, but it never (even at the beginning of the game with no shield) printed the "hi" that it was supposed to print if it ran into a trigger
you should post that as an answer and accept it, so we can tell it's solved
Answer by narthur157 · Aug 01, 2012 at 05:05 AM
Solved my own problem. I had "Is Kinematic" checked on for my spaceship which apparently makes the colliders work differently.
Your answer
Follow this Question
Related Questions
Enemy not getting hit (Collider issue) 2 Answers
Collision Detection in Capsule Collider 0 Answers
How to make it so enemies only move towards the player when the player is colliding with an object 1 Answer
Collisions not working. 1 Answer
how to make an Explosive rigidbody trigger by another collision box 0 Answers