- Home /
Question by
alpayoguz97 · Nov 03, 2021 at 08:31 PM ·
physicsrope
How to make rope as in the video ?
I want to make rope as in the video. I tried to make with character joint and rigidbody but it was way more heavy for mobile.
Comment
Answer by AFWorks_Arg · Nov 03, 2021 at 10:09 PM
You can put an object behind the car and make the illusion of pulling using smooth move, you can use Smoothdamp to follow the rope point in the sphere:
public Transform Target;
public float SpeedT = 2f;
Vector3 VelMo = Vector3.zero;
void Update ()
{
transform.position = Vector3.SmoothDamp(transform.position, Target.position, ref VelMo, SpeedT);
}
Its reakky nice and interesting approach. But wouldn't it be costly because it will use Unity physics system ?