- Home /
Finding the faces of a collider box and framing them in camera
I am trying to take screenshots of all the objects in my asset database. I am currently placing them all into the game world and moving the camera over each one to capture a screenshot. I need help with two things
1) Is there a way to get the vertices of the cube that gets drawn around the object when you select it in scene? I could then position the camera centered and perpendicular to the objects to ensure rotational consistency of the objects in the screenshots.
2) Is there some calculation that can be done to determine if the camera can "see" the entire object? For large objects you'd want to be farther away, I suppose this might be a function of the first point where the distance the camera is from the object is computed based on the perimeter of the above cube face.
Your answer
Follow this Question
Related Questions
Internal collisions 1 Answer
Primitive Collider slower then mesh collider 0 Answers
Raycasting question 2 Answers
How to change first person controller input when passing through a collider? 1 Answer
Collision not working 1 Answer