Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by narthur157 · Jul 31, 2012 at 08:41 PM · javascriptcollisionspace shooter

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

  1. my Z position is not being changed, therefore they spaceship and the astroids ARE colliding.

  2. 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.

  3. 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

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Seth-Bergman · Aug 01, 2012 at 05:29 AM 0
Share

you should post that as an answer and accept it, so we can tell it's solved

avatar image narthur157 · Aug 01, 2012 at 05:51 AM 0
Share

ahh yes. $$anonymous$$y bad

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges