How could I apply directional movement to an object based on a separate object's movement?
I've been toying with a protoype for a 2D game mechanic where my character can swing their arm in a circle around their body, pick up objects in the scene and fling them. My problem comes from the "flinging" part. I am using a Teleport gadget to hold an object in the character's hand, which seems to exempt it from carrying a velocity as it goes nowhere once I turn off the Teleport gadget to release the object. I've been trying to apply force the object at the moment of release to compensate, but I'm stuck at the point where I'm trying to make the object's release go in the direction you'd expect based on the combined movement of the character and their arm.
-
Try making the carried object movable (physically simulated). Then add a follower gadget to it, targetting a tag gadget on the hand. Fiddle with the settings to have it follow super closely, so it looks like it’s stuck to the hand. When you want to stop it bring stuck, turn off the follower gadget. That should have the desjred effect.
댓글을 남기려면 로그인하세요.