Issue moving objects that are constrained together.
Posted: Tue Apr 27, 2021 6:50 pm
Hello, the issue I am having has to do with a dynamic object being constrained with a fixed constraint to a kinematic object that are being moved quite drastically as a result of an event in the game I am making. When this event occurs the kinematic object is move from around a Y of -5.f to a Y of 1.f, and the dynamic object that is constrained to the other object is flung up into the air.
My assumption is that because of how far the kinematic object moves, the constraint is acting like a rubber band pulling the dynamic object to the kinematic, and then flinging it further. I have searched through the forum and tried many of different ways to prevent this, manually setting the location for some time, changing the parameters on the constraint, setting the velocity on both the objects to 0 over multiple frames, and more. None of these seem to stop the dynamic object from either flying into the air before returning, appearing where it's supposed to be but in the wrong orientation and then rotating back to where it should be, or slowly moving from the -5 to the y of 1.
I have thought of a few work arounds so I can at least continue with other things for now, but all of them prevent the dynamic object from interacting with other objects in a natural way, and I was hoping someone may have some suggestions how how to handle the dynamic object being flung around.
Thanks in advance!
My assumption is that because of how far the kinematic object moves, the constraint is acting like a rubber band pulling the dynamic object to the kinematic, and then flinging it further. I have searched through the forum and tried many of different ways to prevent this, manually setting the location for some time, changing the parameters on the constraint, setting the velocity on both the objects to 0 over multiple frames, and more. None of these seem to stop the dynamic object from either flying into the air before returning, appearing where it's supposed to be but in the wrong orientation and then rotating back to where it should be, or slowly moving from the -5 to the y of 1.
I have thought of a few work arounds so I can at least continue with other things for now, but all of them prevent the dynamic object from interacting with other objects in a natural way, and I was hoping someone may have some suggestions how how to handle the dynamic object being flung around.
Thanks in advance!