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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Levantez · Oct 11, 2013 at 02:44 PM · physicsrigidbodycollidercharactercontroller

Character Controller - Got Hit and Flying Physic

Hi,

Let say that I have a Character Unit. When the unit got hit by a really strong attack, the Unit will got blown away toward the direction of the Attack Vector.

I wanted to do this via Calculated Physics rather than using preset Animations.


The issue is, my Unit is set up with CharacterController at the moment. Can CharacterController do something that can achieve this?

Or should I re-plan my workflow and set up CapsuleCollider and RigidBody instead?


Also, If I were to add CharacterController to the root, and add Rigid Body to the hip, is it possible to switch between them? Such as using CharacterController only in normal cases. And use rigidbody only when the character got blown away.


There was a few place that use CharacterController.Move, Does transform.translate take Physics Collider into Account?

THX 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 robertbu · Oct 11, 2013 at 06:38 PM 0
Share

With so little information about the game, the desired behavior, and the scripts you are using, any answer would be a guess. Given that you are using character controller, I'd lean towards simulating the physics in the CC script. If you explosion blows the character up in the air, and if the character stops when hitting the ground, then an explosion is just a jump with specific initial values. $$anonymous$$ost scripts that drive a CC already have jump code. An explosion that skitters the character across the ground is a bit more complicated since you have to suspend normal behaviors during the explosion but not that difficult.

You might post this question on Unity Forums. They are better designed (and more appropriate place) for discussion questions.

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

15 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

Related Questions

Character Controller Pushes Car With Wheel Colliders? 0 Answers

Guidelines for using rigidbody, collider, CharacterControllerScript, etc? 3 Answers

Turning a rigidbody controller into a character controller (almost) 1 Answer

When and when not to use kinematic rigidbody? 2 Answers

Problem with rigidbodys and box collider 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