SymOntoClay  is an Independent DIY Game AI DSL.


  Warning logo Disclaimer: This is a purely experimental and unstable personal project, created by a single developer. Not intended for production use.
Please read the disclaimers carefully before use!

BaseBehavior.GetRotationToPositionInMainThread(IMonitorLogger,Vector3) Method

Namespace: SymOntoClay.UnityAsset.BaseBehaviors.BaseBehavior
Assembly: Assembly-CSharp

Creates a rotation with the specified forward and upwards directions. It is a wrapper on Quaternion.LookRotation. This method should be called only in main thread.

Parameters

logger

Logger for method call.

targetPosition

Position that is looked at.

Returns

Rotation to target position.