rotating a game obbject based on direction

this is very hard to explain but i will do my best. i have a script that gets the direction of a gameobject bu getting the position every half second then it normalizes it, i need to find a way to use the direction of the gameobject to rotate the top of the game object to face where it is headed,idek if this is posible.

I’m not at all clear on what you’re trying to do, but the Quaternion class has a variety of helper methods for dealing with rotations, so that would be a good place to look. LookRotation or FromToRotation might help you?

ill defenitly check that out, ill give an example of what im looking for. like a space ship is flying and i need the tip of the space ship to face the direction its moving so it looks like its actualy flying and i need to do this with nothing but the space ship itself like no external game objects that it can use as a focal point

If you know the direction that it’s moving, then that should be easy to do using the functions I mentioned above.

ok ill check it out