Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope between 2 trackers
#4
(08-07-2024, 12:37 PM)Xameal Wrote: It means that I fix my tracker on a real physical object, and in my game, that same object appears because I've modelled it with Blender. Imagine this case with an extinguisher, where you want one tracker on the extinguisher (to hold it), and one tracker on the extinguisher nozzle (to aim at the point where you spray the fire). I have to represent de flexible cable between this 2 parts right ? So, I have to create a flexible rope between 2 trackers.

I hope it's more clear now Sonrisa 

A tracker is just a regular transform then, only that it follows the motion of a real-word object? Doesn't matter where transform data comes from so in that case, using attachments should work fine.

(08-07-2024, 12:37 PM)Xameal Wrote: The problem is that the trackers on Unity (ViveTracker or Meta Quest controllers used as trackers) are always positioned at (0, 0, 0).

That doesn't make any sense, there's only one 0,0,0 global coordinate at that's at the world space origin. If they were always positioned at 0,0,0 that would make them completely unable to move. Maybe you're referring to their position expressed in local space (that is, relative to their parent transform)? If so that's absolutely fine, it won't prevent attachments from working.

(08-07-2024, 12:37 PM)Xameal Wrote: What's more, the ropes are very sensitive to gravity, collisions etc...

You can easily reduce both gravity and collision depenetration intensity. See the solver's settings.

(08-07-2024, 12:37 PM)Xameal Wrote: And so with the trackers always moving (or almost), the rope has trouble staying in place and does 'tricks'. For example, it always turns like a 'skipping rope' around an axis.

This also doesn't sound right. No matter how much the trackers move the rope should stay in place when attached, which kind of attachments are you using? (static or dynamic)? Are you using ropes or rods? Also if using rods, are you constraining the attachment's orientation?

Assuming "trackers" are just transforms, and that their position is 0,0,0 in local space and not world space (which wouldn't make sense!), the simplest setup for this is to add the solver to the fire extinguisher itself to be able to have control over inertial forces, then add two static attachments to the rope: one to the extinguisher, another one to the nozzle. This should work fine, if it doesn't could you give more details about your setup?

kind regards,
Reply


Messages In This Thread
Rope between 2 trackers - by Xameal - 08-07-2024, 08:44 AM
RE: Rope between 2 trackers - by josemendez - 08-07-2024, 12:05 PM
RE: Rope between 2 trackers - by Xameal - 08-07-2024, 12:37 PM
RE: Rope between 2 trackers - by josemendez - 08-07-2024, 01:05 PM