08-07-2022, 02:40 PM
(This post was last modified: 08-07-2022, 02:45 PM by josemendez.)
(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.