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.ViewerComponentsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.2.0 (2024.1.2)
Syntaxpublic SbRotation LookAt(
SbVec3f position,
SbVec3f target,
SbVec3f up
)
Public Function LookAt (
position As SbVec3f,
target As SbVec3f,
up As SbVec3f
) As SbRotation
public:
SbRotation LookAt(
SbVec3f position,
SbVec3f target,
SbVec3f up
)
member LookAt :
position : SbVec3f *
target : SbVec3f *
up : SbVec3f -> SbRotation
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
RemarksThis method does NOT modify the camera node. Set the returned rotation in the camera's orientation field.
See Also