Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 jimm84 · Mar 06, 2020 at 04:27 PM · playercolliderschild-to-gameobjectconflictarmor

Armour wont attach to player - child object wont move with player - also collision issues when attached

Hello, I was hoping somebody may be able to help. I'm quite stuck at this stage. So here are some of the details.


I have a Player that moves around via key control and this all works well.

I have made an armour called 'crust' it has its own health and once it hits zero it vanishes. It also changes and cracks a little as it takes damage, a bit lake vase. it has 4 breakpoints so to speak. - that part works.

I added the collider that takes damage great.

attached it to the player as a child...

The 2 colliders clash and my player pushes the crust off. Basically the player refuses to wear his armour.


B plan - make it an illusion. So I have the breakpoints etc and I have removed the collider from the armour and tried to attach it to the player and for some reason. When I try to attach it. it won't move around the player at all. Now if I stick that colider back on the armour they will clash with each other and the repel.

I wanted to make it so that the game object armour actually doesn't need a collider, it just needs to show that it is breaking and whilst it is being worn by the player. basically the player is invulnerable whilst the crust armour is worn.

I have tried a couple of ways of working around this to no avail, could anyone help me get that armour moving or sticking to the player please?

Thanks,

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 jimm84 · Mar 09, 2020 at 10:37 PM 0
Share

Image attached for reference

armour.jpg (76.3 kB)

1 Reply

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

Answer by Getsumi3 · Mar 06, 2020 at 05:37 PM

Hello.

There is a Layer Collision Matrix in Unity (Edit > Project Settings > Physics) that allow you to specify which object can register collision when contacting with another objetc. (NO SCRIPTING REQUIRED)


Full answer: https://answers.unity.com/questions/686915/how-do-i-get-some-objects-to-ignore-collision-with.html

Comment
Add comment · Show 4 · 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 jimm84 · Mar 09, 2020 at 05:21 PM 0
Share

Thanks, I will have to give this a go - and it sounds great!

avatar image jimm84 · Mar 09, 2020 at 10:15 PM 0
Share

Just like to say thank you for your answer. It will be very handy for the future where I intend to make a blast wave but this isn't quite what I'm looking for I have come to realise. One big issue I am having - as I am trying to work through one problem at a time - is getting the object to attach to the player and move with the player. When I come to run time I'm finding the armour is either being pushed off of the player, or the player starts gliching with the armour and sticking to the top left of the level. The Armour is a child of the player.

avatar image jimm84 · Mar 09, 2020 at 10:36 PM 0
Share

Just to say a big thank you! $$anonymous$$anaged to get it working using the method you suggested. Now it is now case of the armour actually working without the player losing lives!

avatar image Getsumi3 jimm84 · Mar 09, 2020 at 11:21 PM 0
Share

Sounds good! Glad that was helpful.

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

151 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 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 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 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 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 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

Tagging a collider? 2 Answers

Lock camera (on) ontriggerenter 1 Answer

Multiple Colliders Issue 3 Answers

physics.OverlapSphere colliders 1 Answer

i can't get an object to respond to collision! (newbie question) 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