This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Aeleas

Member
  • Content count

    73
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Aeleas

  • Rank
    Member
  • Birthday

Profile Information

  • Gender
    Male
  • Location:
    this world

Recent Profile Visitors

343 profile views
  1. Better than nothing. Thank you Ocular.
  2. OK. How to solve it ? Before i used "rb.AddForce". Yes, car is drifting but not that good. if I increased the speed I get nice long slide/drift but this mean i can't hit my target easily. rb.AddForce(gameObject.transform.forward * 500 * Time.deltaTime); red line is the car movement to hit target.
  3. Hi Guys These days I'm working on car project. I could make it moving and turning with camera very well. but it doesn't give me a scene of realty. So, I search for a tutorial explain the sliding/drifting of a car. I didn't find any one for 3d project except one for 2D games. I copied the script file and transfer it to 3D. But got error. and i don't know if this will work or not . here is the script: float speed = 30f; float torqueForce = 200f; float DriftFactorSticky = 0.9f; float DriftFactorStippy = 1.0f; float maxStickyVelocity = 2.5f; float minSlippyVelocity = 1.5f; // Use this for initialization void Start () { } // end start // Update is called once per frame void Update () { }// end update void FixedUpdate() { Rigidbody rb = GetComponent<Rigidbody>(); float driftFactor = DriftFactorSticky; if (RightVelocity().magnitude > maxStickyVelocity) { driftFactor = DriftFactorStippy; } rb.velocity = forwardVelocity() + RightVelocity() * driftFactor; if (Input.GetKeyDown(KeyCode.Y)) { rb.AddForce(transform.forward * speed); } if (Input.GetKeyDown(KeyCode.U)) { rb.AddForce(transform.forward * -speed /2); } float tf = Mathf.Lerp(0, torqueForce, rb.velocity.magnitude / 2); rb.angularVelocity = Input.GetAxis("Horizontal") * tf; // Cannot implicitly convert type `float' to `UnityEngine.Vector3 } // end fixed Vector3 forwardVelocity() { return transform.forward * Vector3.Dot (GetComponent<Rigidbody>().velocity, transform.forward); } Vector3 RightVelocity() { return transform.right * Vector3.Dot (GetComponent<Rigidbody>().velocity, transform.right); } If you have any other option please write it.
  4. Thank you for your help.
  5. Yes. this is good. but new thing come u. Now when this robot comes down from the hill he keeps looking down and walking like that. what I have to do to let him look straight ?
  6. It should work but it doesn't. it gives me this error // Cannot modify the return value of 'UnityEngine.Transform.rotation' because it is not a variable. //
  7. I tried all these and no one works. gameObject.transform.eulerAngles.y = ManFace.transform.eulerAngles.y; gameObject.transform.localRotation.eulerAngles.y = ManFace.transform.localRotation.eulerAngles.y; gameObject.transform.eulerAngles.y = ManFace.transform.eulerAngles.y; gameObject.transform.rotation.eulerAngles.y = ManFace.transform.rotation.eulerAngles.y; gameObject.transform.rotation.y = ManFace.transform.rotation.y;
  8. My problem is that when I post this script to my robot, I found that when he moves on a hill or anything above ground, he can't rotate his angle to moves with the ground under him. that's because the "ManFace" object rotate only right and left. public Transform ManFace; public float f_MoveSpeed = 2.0f; // Update is called once per frame void Update () { gameobject.transform.rotation = ManFace.transform.rotation; // here is my problem transform.position += ManFace.transform.forward * f_MoveSpeed * Time.deltaTime; } What i need is to let the "Manface" effect on right and left sides of robot only, other angles are free.
  9. I tried that before. it let the robot to go up and do that same thing. that's all.
  10. Here my robot moves from one point to another randomly. I don't know ? That's why i'm asking. Can anyone help me ?
  11. Hi In my game enemy have vehicle "cars" drive it to attacking player. Because it using NavMeshAgent, it stuck on th ground only. What you advice me to do ? Example i need to achieve it.
  12. Better for you to learn how to animate human model. There are many tutorials on Internet will help you. With practice nothing will stop you. Mixamo is useful for your case. there are many types of animations of zombie and human you can use it freely.
  13. I was trying to do your steps and i get good result. But it will takes long time to do the same with other robots. Thank you Sunix.
  14. Thank you so much for what you did, and please answer those several question. what program you used to adjust the body ? because there are lines and you removed ! How you did that ? With Blender "Smooth" I get this result. Second, about the "RobotBase_Albedo" image. How you made it ? Photoshop or other programs ? I know about the UV, HeightMap and NormalMap. But from the image i can see only ONE texture. Tell me the steps you did to get this shape of the robot. This is important for me. Please don't make fun of mt robot. I know the basics but i can't get good appearance for my robot. That really disappoint me.
  15. I made a robot and I don't know what kind of texture can i use for it. Using colors as texture gives me bad result. I need someone texturing the main parts from his mind. Robot Link Also, I appreciate any advise from you.