Click or drag to resize
SoCameraInteractorLookAt Method

Returns the rotation needed to point a camera at position toward the given target point while keeping the "up" direction of the camera parallel to the specified up vector.

Namespace: OIV.Inventor.ViewerComponents
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public SbRotation LookAt(
	SbVec3f position,
	SbVec3f target,
	SbVec3f up
)

Parameters

position
Type: OIV.InventorSbVec3f

of the camera

target
Type: OIV.InventorSbVec3f

position of the target

up
Type: OIV.InventorSbVec3f

up vector of the camera

Return Value

Type: SbRotation
Remarks

This method does NOT modify the camera node. Set the returned rotation in the camera's orientation field.

See Also