Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to know the orientation of the rope ends
#4
(25-05-2023, 01:26 PM)jayanaveenaa Wrote: I have attached a gameobejct tot eh rope' end using particle attachment condition and applied the force through that gameobject.

private IEnumerator ThrowObjectWithDelay(float delay)
    {
        yield return new WaitForSeconds(delay);

        rb.isKinematic = false;
        Vector3 throwDirection = throwDirect.normalized;
        rb.AddForce(throwDirection * force, ForceMode.VelocityChange);

        isThrown = true;
    }

    private void FixedUpdate()
    {
        if (isThrown)
        {
            rb.AddForce(Vector3.down * gravity, ForceMode.Acceleration);
        }


    }

Hi,

Is the attachment dynamic or static?
Is the rope set to collide with the object it is attached to, and is it attached very close to or inside the object?

Kind regards,
Reply


Messages In This Thread
RE: How to know the orientation of the rope ends - by josemendez - 25-05-2023, 02:51 PM