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 Fuzzyursa · Aug 02, 2013 at 05:44 PM · collisionrigidbodycharactercontroller

How can i make one Character controller/rigidbody go inside another Character controller/ rigidbody?

I actually have many question with my project i am currently trying to do. I am pretty new to unity, but i have a B.S. in Game design and have completed the tutorials so i have some idea of what is going on. Anyways I am making a 2d puzzle platformer. In it you play as a parasite that in fest animals to use them to complete puzzles to get through the level. 1.)I am wondering on what would be the best way to do this. Right now i am just switching control to animal, deactivate gravity on the parasite, moving the parasite somewhere far away, and activating the animal. While this works it is not the best solution. I would ideally like to just have the parasite inside the animal. 2.)The other problem with my solution is that when you get out of the animal, it rockets skyward like 130 units before falling to a point like 5 units above the ground. 3.)Lastly for now i need to be able to have the parasite walk past the animals ( along with animals walking past other animals), but i need them to know when they are touching and they need to not fall threw the ground and things like that. I know this is kind of confusing so if you need anything cleared up please just ask. Any help i can get with this would be great. Thanks much.

Comment
Add comment · Show 2
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 cdrandin · Aug 02, 2013 at 06:06 PM 0
Share

I think, you are confused on how to approach this. When you say inside the Animal I assume like really in there digestive track. Ins$$anonymous$$d of forcing colliders into another and dealing with rigidbody problems. $$anonymous$$eh. This gets ugly.

Oh when the parasite goes in the animal, you could make an animation of this happening then the question is how do I get the CC to work inside the animal? Answer is simple, make a new scene. Don't fore the objects into another, but rather make it a whole new scene in which the parasite interacts with. This is could be "in the animal"

avatar image Fuzzyursa · Aug 02, 2013 at 06:20 PM 0
Share

Thanks for the answer, but that is not exactly what i am looking for.when the parasite goes in the animal it kinda just goes awayand you take over control of the animal going through the level as the animal until you decide to have the parasite leave the animal.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Jeff-Kesselman · Nov 11, 2014 at 06:58 PM

i think your question is misleading and overly complex. Your clarification here simplifies it greatly:

"when the parasite goes in the animal it kinda just goes away and you take over control of the animal going through the level as the animal until you decide to have the parasite leave the animal."

Nothing goes "inside" of anything on a code level. You simply remove the "parasite" and turn on a component on the animal that reacts to player controls. When you "leave" you create a new parasite object and deactivate the previously activated component.

Your fundamental problem here was that you were thinking of the problem in too literal simulation terms. Don't think about the fiction, think about the effect and you will program much better.

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 Kiloblargh · Aug 02, 2013 at 06:35 PM

You need to have your colliders as triggers, it looks like most of the time actually colliding isn't really what you want to happen. You probably should not be using physics at all for characters in a 2d platformer, but program your own fake physics to get the exact behaviour you want.

(Surely a 2d platformer with fake physics is something you have to have already done in a game design degree program...?)

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 Fuzzyursa · Aug 02, 2013 at 07:15 PM 0
Share

Yeah ok i was just hoping maybe there was an easier way to do it other writing my own physics. i am sorry if it sounded like i was not trying to brag when talking about the gamedesign degree i just want you to know i know at least somewhat about what i am talking about.

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

15 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

Related Questions

Physics AddForce reduced when 3 objects are colliding 1 Answer

CharacterContronller characters colliding with Rigidbody characters 1 Answer

Turn Gravity on when collision occurs 1 Answer

Making Colliders/Triggers or Rigidbodies move a Character Controller 5 Answers

Unity 4.3 CharacterController collision with physics 2D not working 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