# How can I move and rotate an object along with another using vector math?

How can I move and rotate an object along with another using vector math? This is using Godot 3.1 using a KinematicBody2D as a ship with a StaticBody2D as a planet.

• Note that a game engine generally expects a static body to be, well, static, unmoving. The physics systems will often optimize for this case - doing potentially costly work to inject it into an acceleration structure when it's placed/removed, so future collision queries can be lightning fast during the majority of frames when this object doesn't move. When you move it, you break that assumption, and that costly work has to be done again. If you plan to move the object, it's often better to make it kinematic, to say "I'll move this myself, so optimize it as a mover but don't move it for me" – DMGregory Aug 10 at 9:31