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 Meacho · Oct 29, 2012 at 10:06 AM · collision

Aicraft Collision with Terrain not working

Hello All,

A pre-emptive thankyou for any help. I am currently making a flying game and I am having issues with the aircraft flying through the terrain. My terrain has a terrain collider and my aircraft object has a rigid body and character controller as my parent object and several capsule and box colliders (for the wings, fuselage etc) on other objects under the aircraft (parent) object. I have viewed a few similar Q's on here however I cannot seem to get it to work. Any suggestions will be greatly appreciated.

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 sparkzbarca · Oct 29, 2012 at 10:45 AM 0
Share

you can't do the rigidbody plus character controller thing, thats just wierd.

Rigidbodies are a game component you add to a game object to allow the object to interact with and respond during the physics step. It allows gravity and acceleration and collision and all that good physics stuff.

CharacterController is a game component you add to a game object to allow the object to have collisions EVEN THOUGH it's movement is not physics based. All collisions require a rigidbody EXCEPT charactercontroller ones which is a special components put in just for first person shooter games basically. Alternately games with Arcade movement where your movement is scripted and not calculated can still use them.

If its a plane game and you want arcade controlling, that is they can defy physics and perform 90 degree climbing for example, use a charactercontroller.

If you want them to have to apply forces to the plane to move it then remove the character controller and use a rigidbody.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by FlyingOstriche · Oct 29, 2012 at 10:37 AM

Ive never seen a character controller being used with a rigidbody before as they both do collision detection.

Try giving the parent object a collider.

Does it go through the terrain because the aircraft is travelling to fast? if it goes slowly does it still go through.

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 Meacho · Oct 29, 2012 at 10:38 AM 0
Share

I set the aircraft to fly slowly. I had another look at it and I had 2 char controllers on it, so I took one away and it works now. Thanks for your help.

avatar image
0

Answer by Meacho · Nov 13, 2012 at 08:56 AM

Thanks for your help. I set it up with a Char controller only and it works

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

11 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

Related Questions

2D NPC should kill player on collision but does not. 1 Answer

Creation of a door with collision for a FirstPerson game 0 Answers

Changing a texture of a face on collision 1 Answer

How to restart the level upon cantact 1 Answer

2D Checkpoint Collide not block 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