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 Bentoon · Jan 12, 2015 at 07:14 PM · collisionunity5loadlevel

on collision loading a new level

Hello All I have a short game with about 5 levels.

As the FPS Cam navigates along a path they collide with an invisible plane that has a javascript on it to load level on collision.

Sometimes it works and sometimes not,

(rather it works in Unity, but not all the tim in iOs. All levels are listed in the game settings, so that's not it)

I am running the 5 beta and the colliders must be convex.

Any Ideas? Thanks in Advance

Here's the javascript:

 #pragma strict
 
 var levelToLoad : String = "nextLevel";
 
 function OnTriggerEnter(other : Collider) {
   Application.LoadLevel(levelToLoad);
 }



Comment
Add comment · Show 1
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 Bentoon · Jan 12, 2015 at 10:20 PM 0
Share

It's the weirdest thing!

The script is on a PLANE In Unity 5 beta Th eTRIGGER is set to Convex half the time it works and half the time not...

Grrrr

I have even tried box colliders too.

Haelp!

2 Replies

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

Answer by Bentoon · Jan 13, 2015 at 04:44 PM

In case anyone has this problem with Unity5

1) The Trigger checked needs to be Convex 2) "Constant Detections" help on the Rigidbody on the Camera/Player. 3) I also put a few planes back to back : if the player is going fast and zooms through the first

Thanks

~be

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
avatar image
0

Answer by mattyman174 · Jan 13, 2015 at 08:34 AM

Make the Trigger bigger.

If its to small the collision check might not occur when the player actually collides with the trigger.

Comment
Add comment · Show 1 · 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
avatar image Bentoon · Jan 13, 2015 at 04:42 PM 0
Share

Thanks $$anonymous$$attyman, This wasn't it. It seems to be "Constant Detections" on the Rigidbody on the Camera/Player. I also put a few planes back to back if the player is going fast

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

26 People are following this question.

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

Related Questions

'Favor a GameObject to show so there isn't collision glitches?' 1 Answer

check if two colliders Rub against each other 1 Answer

Trigerrs Logic problem with collision damage 1 Answer

Make character not move through walls and other objects 4 Answers

UI cycling through my level select levels 1 Answer


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