Hi all,
This is probably more of a general Unity problem than Playmaker specific, but any help would be appreciated!
In a VR game I'm using Set Velocity and Set Angular Velocity to 'throw' objects out of the back of a moving truck that is animated driving in a large circle. The objects thrown are currently set to be a child of the truck. The throwing functionality works fine but the direction the objects are thrown in changes related to what part of the circle animation the truck is currently at. Sometimes it works fine but at other positions in the animation the object flies off to the side at a strange angle.
I'm guessing this is due to the objects being parented to the truck, but if I parent the thrown object to nothing it zooms off into the distance when thrown (due to not inheriting the velocity the player is travelling at).
Current solutions I'm pondering:
- Modify the Set Velocity Vector3 somehow to counteract the effect of not inheriting the speed the player is moving at
- Parent to something else
But in each case I'm stuck for ideas, this is a physics problem that's beyond my brain capacity!
Any help would be appreciated!