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 Slingo · Oct 11, 2012 at 07:31 PM · characterspeedfriction

I'd like to add frictionless movment to my character with key press.

Like the Tribes series, I'd like to add "skiing". Basically, frictionless flight just above ground level to attain higher rates of travel. This affect would be useful for going down a hill, the affect would be compounded. Then, when a player releases the button, they would slow and come to a stop.

Comment
Add comment · Show 4
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 AlucardJay · Oct 11, 2012 at 11:03 PM 0
Share

I would like to know this too, but for any answer you need to provide more information. How is your character currently controlled? Character controller or your own script? Using rigidbody and force, or transform variables? What have you done so far to achieve this?

avatar image Nihilana · Oct 13, 2012 at 06:26 AM 0
Share

I would like to know how to do this as well. I've been running through buzz3d's third person controller and can't seem to get an additive velocity while sliding.

avatar image MountDoomTeam · Oct 13, 2012 at 06:56 AM 0
Share

you could try to add constantforce to it, If you can calculate the players movement direction by comparing his position between frames or whatever, you could override any of the character motor/character control of code that might be difficult to read through by keeping tabs of the direction it goes at and putting an equal constant force in that direction when you press the button, to make it realistic, you should put a Time counter that starts when you take off the skidding and counts down to 0 over a second or two, and it gradually lessons the constant force, if it stops to suddenly.

avatar image Slingo · Oct 15, 2012 at 04:35 AM 0
Share
  • 3rd Person controller (stock)

  • Rigid body (Stock)

  • Would rather use force rather than transform because I want physics acting on the pawn. (I$$anonymous$$ Drag, Gravity, Damage from weapons, ect.)

I've thought about adding an upward force that cancels at a certain X value as long as the button is down but have yet to test it due to my lack of coding skill. (I'm still learning and my coder is on another project for the time being. I'm just attempting to be proactive and a asset to my $$anonymous$$m.)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Montraydavis · Oct 13, 2012 at 03:31 PM

What about Rigidbody IsKinetic and Gravity false.? and then reactivate them when needed ?

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

14 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

Related Questions

Make enemy's speed faster through time 1 Answer

How can I "nerf" air-strafe-ing in this script? 2 Answers

How to give a speed to random spawned object? 1 Answer

Zero friction, zero drag, zero gravity bouncy ball in 2D 1 Answer

charactercontroller.isgrounded 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