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 anwserman · Jul 21, 2012 at 06:41 AM · collisioncharacter controllerplatformmesh collider

Mesh Collider + Character Collider + moving Platforms

Ok, I know how (in theory) to make a moving platform. I'm just wondering how it works, the character controller positioning, of that makes sense. I'd like to make my moving platform be a vehicle - the roof of the car changes (hood, body, trunk). I'd have a mesh collider on the vehicle, and have a box (trigger) collider to determine when the player interacts with the vehicle.

I plan on programming my vehicles manually, so they'd be kinematic. My character controller is kinematic. I know that in order to make the character move with a vehicle, I'd parent the character controller to the vehicles game object when the player enters the trigger. But how does the rest work? Would there be a collision between the player and vehicle mesh still to determine where exactly the player lands? Eg, I the player jumps on the hood of the car, it's be positioned on the hood and just not floating in air (treating the vehicle as a box and not like a varying height mesh)

I'm sorry if this is a basic or obvious question, I'm rusty to Unity3D. I keep looking at the collision matrix and I'm just not seeing how the collisions will work in this instance, as the vehicle and the player would both be kinematic (unless the character controller is a special case to all this).

Comment
Add comment · Show 9
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 whydoidoit · Jul 21, 2012 at 07:32 AM 0
Share

JUst one other thing to bear in $$anonymous$$d - inertia would be a big effect if you were on the roof of a car. Sudden acceleration or braking ought to try to fling your character off - but perhaps you are deliberately wanting to ignore that?

avatar image anwserman · Jul 21, 2012 at 07:38 AM 0
Share

Ignore it. The only sudden braking or acceleration would occur if the player was infont of the vehicle and it needed to stop. Thats a whole different problem. Basically, the vehicles are moving platforms to get you from A to B. the only reason why I say vehicle is that they take the shape of a car (moving platform of a varying height).

avatar image anwserman · Jul 21, 2012 at 07:43 AM 0
Share

The only info I've found on moving platforms run with the assumption that it's a flat even surface to land on, which is not true given tge shape of a vehicle.

avatar image whydoidoit · Jul 21, 2012 at 08:43 AM 0
Share

Character controller can support walking up angled surfaces so you should be fine.

avatar image whydoidoit · Jul 21, 2012 at 08:44 AM 0
Share

I would suggest that you make your vehicle have a set of aligned primitive colliders, it will be easier to debug.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

colliding characters and meshes 0 Answers

How to prevent Character Controller from falling through moving Platforms? 4 Answers

Collision between Character Controller and Box Collider 2 Answers

How to move multiple dynamic gameobjects with one moving platform which is controlled by the player 0 Answers

Very Confused About Convex Mesh Collider Result 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