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: 10.12.3.0 (10.12.3.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