public class RotateTowardsVector : Action
{
[Tooltip("Current managed vector")] public BlackboardEntrySelector current = new BlackboardEntrySelector(); // <-- this one
[Tooltip("Target vector")] public BlackboardEntrySelector target = new BlackboardEntrySelector(); // <-- this one
[Tooltip("The maximum angle in radians allowed for this rotation")]
public BlackboardEntrySelector<float> maxRadiansDelta;
[Tooltip("The maximum allowed change in vector magnitude for this rotation")]
public BlackboardEntrySelector<float> maxMagnitudeDelta;
[Tooltip("Blackboard variable to store the new rotated vector in"), WriteOnly]
public BlackboardEntrySelector rotated = new BlackboardEntrySelector(); // <-- this one
In Edit mode:
After I hit play:
Maybe the
new
statement is the bad guy here.