- Home /
Adding directional force to Parent using the direction of the child
So im trying to do a ball game for example where you can turn the ball and always get forward force. I figured the best way of doing this would be to add a child that doesn‘t rotate with the ball and use its direction to add force to the ball. However i could not figure out how so any help is appreciated. Thank you.,
The child is going to rotate in world space with the parent. You don't need a child though, you can either use the cameras forward or just use world space vectors. It depends on your setup.
The child's rotation is in local space, meaning relative to the Parent. So to move the Parent relative to the child's rotation you would probably find it easiest to convert the child's rotation vector to a world vector then set the parent's direction to that Vector.