• 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 uniter · May 07, 2012 at 12:06 AM · character controllerrtscharacter motorcharacter control

need help in an RTS game...needed fast....very badly!

i am disprate right now very bad .... i have made a cameraMovement, building and recruitment system....but at moving characters and units i got a cube as soldier when i gave it rigidbody and collider i know how to move it to a point where i clicked and makes it rotate to the direction of that point but i have two problems :

1-when the cube walk it do some wiered friction that cause the cube to somewhat rubs to the ground.

2-if u have something like hill, when u click above it how do u make it walk on the ground to the top of the hill and the opposite if it above the hill and wanna go down.

pleaaaaaaaaaaaaaaase really the scripting of characterMovement made me hate myself...and i am still beginner...any help really appreciated and thank you...

Comment
Add comment · Show 3
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 Sericet · May 07, 2012 at 12:08 AM 1
Share

I am having a hard time understanding what you want. Please pose your questions again

avatar image maroonrs2 · May 07, 2012 at 12:35 AM 0
Share

Please fix your grammer. Umm, it seems like it goes back and forth uncontrollably. Try making the rigid body's x and y flagged so they cannot move. To make it go up i would think the rigidbody would take care of it. Also, i think your using transform.Translate or transform.position. If thats the case use AddForce.

avatar image GC1983 · May 07, 2012 at 01:47 AM 0
Share

If your units are all grounded, you dont really need a rigidbody. That could be the cause of the dragging. Get rid of the colliders and give them a Character Controller then use the CC reference code to move them around. Do this only if you are not using any kind of physics such as jumping, flying, etc... Otherwise, disregard. Rigidbodies are not necessary to move objects around a map.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Character Motor doesn't reach max speed 0 Answers

Falling Through an Elevator 3 Answers

Adding Multiple Slope Limits to the Character Controller 0 Answers

How to move the character controller and the moving platform it is standing on. 1 Answer

Character Controller: Odd quirk when backing up 3 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges