Problem: invisible non-colliding object inside group changes group’s weight and causes unintended rotation
My goal is to put invisible non-colliding object inside a group and make it visible when I trigger animation. A lot of people are making games with complex animation so there has to be some way to do something like this. However, dreams seem to create the mass of the group using all objects inside even when the objects were turned off. So let’s say cube A is at (0,0,0) and cube B is at (5,5,0). The group’s mass becomes something like a stick connecting A to B. So even when I set B to ignore gravity, the group rotates. I just don’t want B affecting A whatsoever when invisible. Any advice?
-
What might be happening is that it's using the centre of the overall group as the centre of mass. So then if one cube is off-centre, the centre of mass is off-centre. But the mover or whatever is centred to the original cube only? Something like that?
It's not really about gravity, I think. I mean, even in space, if you put a thruster off-centre it will start rotating. It's more about mass.
Try turning the density down all the way perhaps.
Another way of doing all of this would be to have a tag in the movable object. Then have another group which teleports to that tag's position and rotation. That way it won't affect its physics at all. -
Thanks for your reply Tapgiles. Turning the density all the way down doesn’t seem to be the way to go. The off centered cube now causes subtle vibration instead of rotation especially so when the cubes are far apart. I guess it’s because the density becomes really small but not zero?
I have a question about your 2nd way. So you prepare cube A and a group containing cloned A and cube B and then replace A with that group? If A was moving, how do you transmit its speed and other information to that group?
댓글을 남기려면 로그인하세요.