When an object has no parent, it’s transform position will always change when it moves, but when it haves a child then the child’s position will not change when only it’s parent moves because the child is not internally affected… How do I get the actual position of it because i have a cannon that rotates which has a empty transform in front of it used to find direction of the velocity of the cannonballs that spawn on it.
localPosition
transform.position will give you global position.