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 KTS_Soft · Nov 23, 2014 at 12:24 PM · collisionplayerobjectcubehide

Disable and hide object after collision between player and cube

Good evening everyone, I have a problem with Unity3d. I would like to disable or get rid of a gameobject after a collision between player and Cube.

How can I fix this? Thanks to all

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 MrSoad · Nov 23, 2014 at 11:39 AM 0
Share

What have you tried so far? Please post your script as it is at the moment for us to see. If you don't have a script yet then please try to write one before you ask for help, we do not write scripts to order...

Here are a couple of links to help you get started :

http://docs.unity3d.com/$$anonymous$$anual/CollidersOverview.html

http://unity3d.com/learn/tutorials/modules/beginner/physics/colliders

http://docs.unity3d.com/ScriptReference/Collider.OnCollisionEnter.html

http://unity3d.com/learn/tutorials/modules/beginner/physics/on-collision-enter

and :

http://docs.unity3d.com/ScriptReference/Renderer-enabled.html

http://unity3d.com/learn/tutorials/modules/beginner/scripting/destroy

http://docs.unity3d.com/ScriptReference/Object.Destroy.html

:)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Eck · Nov 23, 2014 at 01:02 PM

Go through the first video tutorial series. It walks you through step by step how to setup collision detection between a player (sphere) and a cube. It's the "Roll a Ball" tutorial.

http://unity3d.com/learn/tutorials/projects/roll-a-ball

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

on collision, show/hide other model scripting ? 1 Answer

Parent Object 0 Answers

How do I get rid of white lines when objects collide? 1 Answer

How to do something when an object is in the player sights. 2 Answers

Player object falling through game environment, collision not detected with ground 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