Class FaceTargetMono
Object that will maintain a rotational lock on a position. Each frame, this object will turn to look at its target.
Inheritance
System.Object
FaceTargetMono
Implements
Namespace: Ride
Assembly: cs.temp.dll.dll
Syntax
public class FaceTargetMono : MonoBehaviour, IFaceTarget
Remarks
This is the Unity MonoBehaviour specific implementation of IFaceTarget.
Fields
Name | Description |
---|---|
m_facer | The object that will turn to face |
m_reverseForward | Set to true if you want to reverse the forward vector after facing. Useful for 3D UI |
m_target | The thing that you want to look at |
Methods
Name | Description |
---|---|
FaceTarget(RideVector3) |