Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Reposition in script and setup
#3
(13-12-2019, 11:16 AM)josemendez Wrote: Assuming you're using Obi 5.0: Attach the rope to the red circle using a static attachment, and attach it to the box using a dynamic attachment (since you need two-way coupling between the blue box and the rope!)

Also, make sure you move the circle during FixedUpdate(), or you'll experience a 1-frame delay. Physics are always (expect in special cases) updated in FixedUpdate(), not Update() or LateUpdate().

To make the rope swing less, increase the solver's damping.

Does it have to be updating position in FixedUpdate function, because I am doing reset function where I was hoping I can do something like transform.position = Vector.Zero. And that reset its position and everything, otherwise player will need to wait for the object to move.
Reply


Messages In This Thread
Reposition in script and setup - by LORDeveloper - 13-12-2019, 10:58 AM
RE: Reposition in script and setup - by LORDeveloper - 13-12-2019, 12:06 PM