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
1
Question by jackson31 · Jun 23, 2012 at 03:42 PM · triggerontriggerentertriggerscollisionsoncollision

Detect trigger touching another trigger?

Hi, I'm trying to make a prototype for a physics mech building game, to do this the player spawns physics pieces and can move them around with thier physics turned of (I set the Rigidbodies to isKinematic = true) the player would then be able to join up pieces and hit "simulate" to turn on physics for the whole mech all at once

So to be able to weld pieces together i need to detect if they are touching, but i don't know how

the functions OnTiggerStay, OnCollisionEnter etc. all require colliders that are "solid", they can't be triggers or have isKinematic = true

Is there a way I can detect these triggers colliding other triggers?

Any help would be much appreciated

PS: here's a playable link of my progress so far : https://dl.dropbox.com/u/1542202/MechBuilder01/WebPlayer/WebPlayer.html

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
-1

Answer by Berenger · Jun 23, 2012 at 03:53 PM

You can receive a message with a kinematic rigidbody only if the other collider has a non-kinematic rigidbody. You can then add a rigidbody to each part, set useGravity false, freeze all movement / rotation and set kinematic only the one you move.

Btw, you should disable the picking when the player is dragging the mouse, and the rotations axis are a bit hard to select. Also, you could improve your outline shader by drawing them before the object, that would remove the outlines inside it. Sort of like that shader. But that's a matter of taste I guess.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Can not get OnTriggerEnter and OnCollisionEnter to work!? 1 Answer

OnTriggerEnter doesnt see enemy 1 Answer

Updating a Value in OnTriggerEnter and Returning That Value Immediately... 0 Answers

Child Object's collider setting off triggers 1 Answer

How do I prevent multiple triggers using OnTriggerEnter? 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