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 coder_127 · Jun 02, 2015 at 03:05 PM · collisionphysicsracingzerohovercraft

How to stop a zero-gravity craft from going up walls..

Hi,

I'm having trouble with this tidbit.

I have a working zero-gravity hovercraft which moves and controls exactly how I want it to.

I want to make a racing game using this craft so I would need it to stick to a certain track.

The issue I'm having is, every time the craft comes to a wall or barricade etc, it turns and makes that wall it's base and begins moving up it.

What I want is, if it hits a wall, just to have a sort of ' bash' collision where it slows down and turns to the road like a racing game. But the physics I'm using to keep the craft hovering is contradicting with this.

The game would be very similar to wipeout so knowing how they would have done their physics would be a big plus..

My question is.. when my craft hits a wall, how would I stop it from climbing it and make it not turn or anything just sticking to the track?

Thanks in advance

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 Baste · Jun 02, 2015 at 03:10 PM 1
Share

Won't be very easy to answer this if you don't post at least part of your hovering code.

It seems like you have a system where the vehicle has some transform or mesh registered as it's "ground", and moves relative to that. If the problem is that the system hits the wall and sets it to be the "ground", it should be pretty easy to fix your problem.

Simply add a tag to whatever you want to be the ground a vehicle can move over, and check for that when you're assigning a new ground. Have whatever your track is have that tag, and don't put that tag on the walls.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Punching a crate 0 Answers

Imported 3D models collisions 1 Answer

FPS Tutorial: Why do my grenades go through the walls? 3 Answers

Exported Scene in .swf loses 2D colliders ? 1 Answer

How to use Physics.IgnoreCollision for multiple objects / toggling collisions for multiple, specific objects? 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