You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I have a car spawning system and a viewport so the player can see the car they’d like to spawn. I want all the cars to appear in the center of the viewport, however that’s not happening.
What is the issue? Include screenshots / videos if possible!
The issue is that while each vehicle is positioned at 0,0,0 and the camera is fixed in a good location, each vehicle seems to move a bit. I believe this could be due to the bounding box of the model, or more likely the drive seat of the vehicle. I’m not sure this is right though, since the drive seat is centered in each vehicle.
I ran an experiment and positioned all the cars at the same spot and this is what happens.
This is the issue I’m experiencing in the viewport:
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried all sorts of searches pertaining to offsets as I figured maybe I could set up a camera and a vehicle and calculate that offset to use, however, it didn’t lead me anywhere helpful; besides I’m pretty bad at understanding CFrames.
If anyone has any ideas or pointers, please let me know as I’ve been chipping away at this for two days yet I can’t find an answer that’ll provide the result I’m looking for.
I think that’s essentially what im doing with the drive seats since they’re all positioned the same. This might be an issue based on the vehicle size/shape itself
For a car specifically you might want to use the bottom of the front bumper as the point of reference to position it in the frame, so its not cut off. You could calculate how far back the camera needs to be to have the closest front bumper corner be inside the frame fully, by reversing the calculation to get its screen point.