Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 SyntaxTerror · Aug 02, 2015 at 03:46 PM · collidertriggervelocityaddforcedrag

Why is there still drag when drag is 0?

I'm creating a fairly simple platform game. At the moment, I have my enemy characters working, more or less. However, the system I've implemented is a bit cumbersome with each character having more than one trigger or collider.

Ideally I'd like to put each character under as much physics control as possible, which would remove the need for so much complexity.

I've tested one character under full physics control and given it a physics material. However, although the drag is set to zero, it still slows down gradually - even when not on a platform. This is most evident when the object falls off the side of the object. When it falls, it does so in an arc.

What I need is to be able to maintain a static velocity throughout. The reason that I'm currently having to use more than one collider or trigger per object is to make it easier to determine whether or not the collision is against a floor, a wall or the edge of a platform. If I could put it under physics as much as possible, it would mean I could dispense with all this complexity. However, I can't maintain a standard velocity without setting the velocity on Update, which is not something I really want to do.

Comment
Add comment · Show 6
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 Bonfire-Boy · Aug 02, 2015 at 04:19 PM 0
Share

What do you mean by "This is most evident when the object falls off the side of the object. When it falls, it does so in an arc." ?

Presumably they have lateral motion when they go off the side of the object, so one would expect gravity to make them to fall in an arc, whether there's drag or not.

avatar image SyntaxTerror · Aug 02, 2015 at 04:23 PM 0
Share

I've had to rethink that part of the question. I need to keep the arcing. I need to then re-apply the correct force when it lands on a platform.

The problem therefore is that there's still drag when it's moving on a platform. I'm using Rigidbody.AddForce to give objects an initial push.

avatar image maccabbe · Aug 02, 2015 at 04:33 PM 0
Share

Have you disabled friction?

avatar image SyntaxTerror · Aug 02, 2015 at 04:50 PM 0
Share

Ah - thanks. You put me on the right track. It's not 100% but it's given me something to work with. The only problem now is that there's massive damping when the objects hits a wall. Ins$$anonymous$$d of heading back the direction it came at the same speed, it slows right down.

avatar image Bonfire-Boy · Aug 02, 2015 at 08:58 PM 0
Share

Have you given the wall bouncy physics properties?

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

23 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

Related Questions

Can't click gameobject when over another trigger? 1 Answer

OnTriggerEnter and IDragHandler 1 Answer

Switching between areas in a scene with triggers 0 Answers

Copy object Movement/Addforce on Trigger to other object,Copy object Movement/Force to object in Trigger 0 Answers

Why do I get this error in such a simple script? 3 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