LookAt

LookAt(float, Vector3)

public void LookAt(float angularSpeed, Vector3 targetPosition) ;

Description

Rotate in the direction of the specified position.

Parameters

Parameter Name Description
angularSpeed angular speed
targetPosition Target

LookAt(float, Transform)

public void LookAt(float angularSpeed, Transform target) ;

Description

Rotates in the direction of the specified Transform.

Parameters

Parameter Name Description
angularSpeed angular speed
target Target