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 nohabloinglez · Mar 27, 2015 at 09:50 PM · physicsrigidbodyswipeideasskateboard

How to add force like a "kick" relative to swipe angle? (Skate game)

Hi,

I like to think how actual games works and then i'm trying to reproduce the True Skate (https://play.google.com/store/apps/details?id=com.trueaxis.trueskate) logic to kick the skate and do the tricks. My first idea to keep the physics real was to raycast a point in the skate, instantiate a ball with rigidbody in that point and add force to the transform.up * -1 of the ground. In the first idea the problem is that to perform a trick in skate and make the skate jump, you have to add some force forward and release the backwards force, like this:

alt text

So then, i add a Destroy() function to simulate the "release" and the second click will be a down + forward force, but the skate still doesn't act like the gif and this "solution" will only give me touches, and not swipe with angles and forces. (Plus i add some physic materials to ground and skate to test if the bounciness can help). Then after some research i found this question and tried to add the resultant force to the instantiated ball, with a slightly better result, but not what i wanted or even an acceptable result, if someone have a idea to implement this or experience with this "type" of physics it would be awesome. Thanks in advance.

ezgif-29189936591.gif (485.4 kB)
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by lordlycastle · Mar 28, 2015 at 09:15 AM

Don’t know much about Skateboard tricks but what’s happening get gif is simple, first upward force is applied, and torque is applied. Both of with can be simple applied to rigid bodies with AddForce and AddTorque.

Comment
Add comment · Show 2 · 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 nohabloinglez · Mar 28, 2015 at 08:22 PM 0
Share

Thanks for the answer! But the idea to add the forces is simple, the question was how to simulate / get this force and angle from a swipe (like in the game True Skate) so you can combine a lot of movements dynamically, like for example in this video.

avatar image lordlycastle · Apr 08, 2015 at 05:41 PM 0
Share

@nohabloinglez I don’t think all that is done with force. I think, there the animations are started with different type of swipes. The whole flip is pre-recorded animation, and simple started when someone swipes.

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

OnCollisionEnter isn't working between two RigidBodies 1 Answer

How do I connect multiple spheres using joints and make a character? 1 Answer

Shooting a cannonball. 6 Answers

Solar System Simulator Orbits Not Working 2 Answers

My object falls through terrain. 8 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