Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by LoKo6264 · Jun 11, 2016 at 04:29 PM · collidercolliderscharacter controllerchild objectradius

Untouchable child objects of first person controller

Hi there,

I'm using fps controller from standard assets from Unity and as I'm creating fps game, I added hand and gun as child objects to this controller. I have colliders on gun and hand but I can go into everything. Other objects also have colliders. I noticed that, component of character controller I'd make bigger radius then everything is fine but...my player is too high for my map this way so I can't do that this way. Player is like over every object in game. I need this player to be not high so I have radius only set up for 0.22. So how can I make untouchable by hand and gun everything again as everything has their own collider already?

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
0
Best Answer

Answer by Mmmpies · Jun 11, 2016 at 04:45 PM

Try putting a capsule collider instead of a sphere as the radius doesn't affect the height of a capsule collider.

Comment
Add comment · Show 17 · 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 LoKo6264 · Jun 11, 2016 at 05:02 PM 0
Share

Where to put capsule collider? I don't have sphere collider anywhere. I've tried to put it on the player and centered where hand and pistol is but it was still that same. Later I've tried to put capsule collider on the gun and still that same.

avatar image Mmmpies LoKo6264 · Jun 11, 2016 at 05:05 PM 0
Share

I noticed that, component of character controller I'd make bigger radius then everything is fine

Whatever that is replace with a capsule collider, I am assu$$anonymous$$g it's a sphere collider though.

avatar image LoKo6264 Mmmpies · Jun 11, 2016 at 05:37 PM 0
Share

But it's first person view and if I delete character controller then I can't move my player at all even if I add capsule collider (ofc I checked this).

Show more comments
Show more comments
avatar image Mmmpies · Jun 11, 2016 at 06:00 PM 0
Share

In that case I don't understand why you can't change the radius and set the height in the inspector. You have 2 fields so they should separate.

avatar image LoKo6264 Mmmpies · Jun 11, 2016 at 06:09 PM 0
Share

Even with height on 0 my player is too high for this map. And it's impossible to make high on $$anonymous$$us. I don't see height for where player is. Exactly, my player is there where you can see camera mark on the screenshot and it's always in the middle. And if I see this radius in half under the ground on the scene view then if I start play everything goes up (on?) the map and it's too high.

If you don't understand in 100% what I mean then:

screenshot before click play: https://zapodaj.net/aba6a519049de.png.html

screenshot after click play: https://zapodaj.net/0a94ae4c32c06.png.html

avatar image Mmmpies LoKo6264 · Jun 11, 2016 at 06:19 PM 0
Share

O$$anonymous$$ what happens if you add a capsule collider as a component to the character controller. Set Y to 1 and radius 1.5 and height to .5?

Show more comments
avatar image Mmmpies · Jun 11, 2016 at 06:50 PM 0
Share

Thinking about it you should just be able to AddComponent a Sphere collider to the controller and then offset its position to be where your hands are.

avatar image LoKo6264 Mmmpies · Jun 11, 2016 at 06:54 PM 0
Share

Still, you can take a look, pay attention on the scene view where you can see collider and game view where it's get into this object :/

https://zapodaj.net/2a57e4fcf118e.png.html

avatar image Mmmpies LoKo6264 · Jun 11, 2016 at 07:30 PM 0
Share

Year you're right. If you set your controller like this does it help.

Y = .5 Radius = 1

Show more comments
avatar image Mmmpies · Jun 11, 2016 at 07:41 PM 0
Share

But is that better or worse or no different. Looks like more of your arms are outside the clipping plane of the object so try

Y = .75 Radius = 1.5

avatar image LoKo6264 Mmmpies · Jun 11, 2016 at 07:54 PM 0
Share

With this previous set up everything what I noticed is that, the player was a little bit higher than previously.

With it I noticed if Y is higher then my player is downer. Radius for take all hand with gun need to be set to 2. I chose Y set to 1.75 but now it's too big radius and I can't get too close to objects, for example:

https://zapodaj.net/3b3a35fdeca24.png.html

So how to set this to work, though, almost perfectly?

avatar image Mmmpies LoKo6264 · Jun 11, 2016 at 08:21 PM 0
Share

What I've been doing is setting Y to half the radius. It's not perfect and really you want to create your own controller so you don't get these issues but I guess that might be a while off.

Look on YouTube for tutorials on creating your own, it's hard at first but ultimately much easier as you have complete control over the script.

Show more comments

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

67 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

Related Questions

how to solve Box Collider corner problem ? 0 Answers

Getting the radius of a cylinder 1 Answer

Easier way to make large scale barriers? 0 Answers

Calling "OnTriggerEnter" when a parent object has a rigidbody 0 Answers

Collision problems 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