Class CameraPlacement
Namespace: ValveResourceFormat.Renderer.Utils
Assembly: Renderer.dll
Picks where to put the camera when the viewer focuses something.
public static class CameraPlacementInheritance
Fields
PlayerHalfExtents
Hull probed with first: a standing human.
public static readonly Vector3 PlayerHalfExtentsField Value
SmallHalfExtents
Hull probed with second: a small cube representing the camera.
public static readonly Vector3 SmallHalfExtentsField Value
Methods
FindOrbitPosition(Rubikon?, Vector3, float, float)
Finds a camera position orbiting center that is not embedded in world geometry and has a clear line to the target.
public static Vector3 FindOrbitPosition(Rubikon? physics, Vector3 center, float distance, float targetRadius = 0)Parameters
physics Rubikon?
Physics world to probe against; when null the preferred position is returned as-is.
center Vector3
World-space point the camera should look at.
distance float
Orbit radius that frames the target.
targetRadius float
Radius of the focused object, so probes start outside its own collision.
Returns
The chosen camera position, falling back to the preferred one when the target cannot be seen from anywhere.

