- Home /
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...
I am having a hard time understanding what you want. Please pose your questions again
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.
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613071159im_/https://answers.unity.com/themes/thub/images/avi.jpg)