public static TweenerCore <Vector3, Path, PathOptions> SetLookAt(this TweenerCore <Vector3, Path, PathOptions> t, Vector3 lookAtPosition, Vector3?forwardDirection, Vector3?up) { if ((t != null) && t.active) { t.plugOptions.orientType = OrientType.LookAtPosition; t.plugOptions.lookAtPosition = lookAtPosition; t.SetPathForwardDirection(forwardDirection, up); } return(t); }
// Token: 0x06000152 RID: 338 RVA: 0x000074A1 File Offset: 0x000056A1 public static TweenerCore <Vector3, Path, PathOptions> SetLookAt(this TweenerCore <Vector3, Path, PathOptions> t, Transform lookAtTransform, Vector3?forwardDirection = null, Vector3?up = null) { if (t == null || !t.active) { return(t); } t.plugOptions.orientType = OrientType.LookAtTransform; t.plugOptions.lookAtTransform = lookAtTransform; t.SetPathForwardDirection(forwardDirection, up); return(t); }
public static TweenerCore <Vector3, Path, PathOptions> SetLookAt(this TweenerCore <Vector3, Path, PathOptions> t, Transform lookAtTransform, Vector3?forwardDirection = default(Vector3?), Vector3?up = default(Vector3?)) { if (t != null && t.active) { t.plugOptions.orientType = OrientType.LookAtTransform; t.plugOptions.lookAtTransform = lookAtTransform; t.SetPathForwardDirection(forwardDirection, up); return(t); } return(t); }
public static TweenerCore <Vector3, Path, PathOptions> SetLookAt(this TweenerCore <Vector3, Path, PathOptions> t, float lookAhead, Vector3?forwardDirection = null, Vector3?up = null) { if ((t != null) && t.active) { t.plugOptions.orientType = OrientType.ToPath; if (lookAhead < 0.0001f) { lookAhead = 0.0001f; } t.plugOptions.lookAhead = lookAhead; t.SetPathForwardDirection(forwardDirection, up); } return(t); }