Forum rules - please read before posting.

Pick-up object following the cursor faster

edited May 30 in Technical Q&A

Hi everyone. I'm creating a pick-up object but right now the object follows the cursor which is quite delayed. I tried to change the Max speed in the Movement settings but it doesn't do anything.

Is there any way to make the object follow the cursor faster or which part in the pick-up script can I modify to achieve it? Thanks!

Comments

  • edited May 30

    Update:

    I tried to lower the Mass to 1 and even lower as mentioned in the document. I also tried to edit the DragBase script SetRigidbodyDrag and SetRigidbodyAngularDrag to 1. However, the Pickup object is still delayed quite a lot when following the cursor.

    Btw, I'm using AC 1.86.1 in Unity 2022.3

  • Is this continuously, or only during the initial lift?

    There is an internal "speedFactor" variable within the DragBase script (line 81). Does the PickUp move faster if you manually raise this value?

  • edited June 1

    When continuously holding the pick-up object, not the initial lift.

    I tried to increase and decrease the speedFactor variable to really high and low numbers but it doesn't seem to be changing anything.

    I tried to increase the force in the scripts here and there. But I'm not sure which one controls the force of the object to follow the cursor.

  • How large is the PickUp object involved? Does your game rely on Unity's scaling (i.e. 1 unit = 1 meter)?

    Within the Moveable_PickUp script, try raising instead the movementFactor value.

  • Increasing movementFactor value does make the object follow the cursor faster. Thanks a lot, Chris!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.