Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Rigidbody constraints
#2
(08-07-2022, 02:19 PM)fconsonnibk Wrote: Greetings,
for the software we're developing we're finding ourselves in a situation where we need to constrain the effect of a rope, attached to a rigidbody, on another rigidbody. I made a simple diagram to illustrate the situation better (I'm not an english native speaker)

The grey sphere is where the rope attaches, and both the sphere and the red cube have rigidbody components. We want them to act in a way that, while the sphere is fully constrained in its rotations (in other words its rigidbody is frozen on all axes), the red cube is still capable of rotation on, at least, the Y axis.

We tried using constraints, but it seems that regardless of the setup the cube's rotation is frozen on all axes, much like the sphere.

Any idea on if, or how, such a rigidbody relationship can be implemented, either with proper set up constraints or by code?
I also attached the current relevant components of the cube (diverSettings) and of the rope attachment point (attachSettings)

Regards

Hi!

This seems to be more of a question regarding rigidbodies/joints than Obi, but will try to help nonetheless.

You don't mention what the relationship between the cube and the sphere is. Are they independent rigidbodies? are they related via joints, or are they free to move and maybe collide with each other?

The cube's mass is 100 kg. This means it will be very hard to move unless the sphere (which I assume is colliding against it) has a similar weight, but its weight is 1. So chances are the sphere will be basically unable to move the cube. If you want the sphere to be able to move the cube, both need to have comparable masses. The higher the mass of the cube, the harder it will be for a light object to affect it in any way.
Reply


Messages In This Thread
Help with Rigidbody constraints - by fconsonnibk - 08-07-2022, 02:19 PM
RE: Help with Rigidbody constraints - by josemendez - 08-07-2022, 02:40 PM