Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hinge Joints Alternative?
#13
(22-11-2020, 08:41 PM)Pheebau Wrote: Unfortunately my tests with ObiStitcher in trying to emulate some hinge of some sort have been underwhelming to say the least but I am not surprised as it was never made for this.

Even as a simple test, take the Barrels deformation demo scene and try and stitch 2 barrels together - no mater how I define the stich(es), the barrel will move and travel together without me even doing anything - similar to the dancing effect you can sometimes get with soft bodies in a scene Guiño

Did you try setting the stitched particles to the same phase value, so that they don't collide with each other? Stitching them and making them collide will likely cause feedback (dancing) effects.

(22-11-2020, 08:41 PM)Pheebau Wrote: Also, I believe the only way to break a stitch is to disable it via the API. In my project, I need hinges to rotate on a single axis and break potentially - this is a physics game with soft bodies.

Unfortunately stitches can't break depending on force. Triste

[quote='Pheebau' pid='8275' dateline='1606074097']
@josemendez Last, how hard would it be to implement some hinge in Obi?

Hinge constraints remove rotational DOFs (degrees of freedom) from a pair of bodies. This usually requires fine control of angular motion per-axis, as well as proper inertia tensors (which Obi only roughly approximates). While particles in Obi are augmented with rotation to some extent, they're not yet fully rigidbodyfied so to speak. Implementing hinge constraints would take quite some time as core parts of the engine need to be augmented/modified. We will consider adding this in the future.

An alternative could be using dynamically attaching particle groups to rigidbodies, then using hinge constraints on those rigidbodies. Less than ideal, but I think it's the best workaround for now.
Reply


Messages In This Thread
Hinge Joints Alternative? - by StudioTatsu - 13-05-2019, 06:01 PM
RE: Hinge Joints Alternative? - by josemendez - 18-05-2019, 02:15 PM
RE: Hinge Joints Alternative? - by tegleg - 08-07-2019, 09:45 PM
RE: Hinge Joints Alternative? - by StudioTatsu - 09-07-2019, 02:38 AM
RE: Hinge Joints Alternative? - by josemendez - 09-07-2019, 10:52 AM
RE: Hinge Joints Alternative? - by tegleg - 09-07-2019, 10:48 PM
RE: Hinge Joints Alternative? - by josemendez - 10-07-2019, 07:10 AM
RE: Hinge Joints Alternative? - by tegleg - 10-07-2019, 12:04 PM
RE: Hinge Joints Alternative? - by Pheebau - 10-11-2020, 02:28 AM
RE: Hinge Joints Alternative? - by tegleg - 17-11-2020, 09:38 PM
RE: Hinge Joints Alternative? - by Pheebau - 18-11-2020, 12:58 AM
RE: Hinge Joints Alternative? - by Pheebau - 22-11-2020, 08:41 PM
RE: Hinge Joints Alternative? - by josemendez - 23-11-2020, 09:02 AM
RE: Hinge Joints Alternative? - by Pheebau - 23-11-2020, 10:18 AM
RE: Hinge Joints Alternative? - by tegleg - 23-01-2021, 01:54 AM