News Forums RAIN General Discussion and Troubleshooting [Bug] Look rotation viewing vector is zero

This topic contains 2 replies, has 3 voices, and was last updated by  xDavidLeon 6 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39748

    tgraupmann
    Participant

    It looks as if the Move action is missing a != Vector3.zero check. Probably when the Move action faces toward the target, an invalid Vector3 is not checked before calling Quaternion:LookRotation.

    Logging this error repeatedly impacts performance. See the stacktrace below.

    Look rotation viewing vector is zero
    UnityEngine.Quaternion:LookRotation(Vector3)
    RAIN.Utility.MathUtils:GetLookAtAngles(Vector3, Vector3, Vector3)
    RAIN.Motion.SimpleSteering:Face(Vector3, Vector3, Vector3, Single, Single)
    RAIN.Motion.SimpleSteering:DoDirectMovement(AI, Vector3, Single, Single, Single, Boolean, Boolean)
    RAIN.Motion.BasicMotor:Move()
    RAIN.BehaviorTrees.Actions.MoveAction:Execute(AI)
    RAIN.BehaviorTrees.BTNode:Run(AI)
    RAIN.BehaviorTrees.BTWaypointNode:Execute(AI)
    RAIN.BehaviorTrees.BTNode:Run(AI)
    RAIN.BehaviorTrees.BTSequencerNode:Execute(AI)
    RAIN.BehaviorTrees.BTNode:Run(AI)
    RAIN.Minds.BasicMind:Think()
    RAIN.Core.AI:Think()
    RAIN.Core.AIRig:AIUpdate()
    RAIN.Core.AIRig:Update()
    • This topic was modified 7 months, 3 weeks ago by  tgraupmann.
    #39908

    Mad_Mark
    Participant

    Interesting. Started getting these now too as I merge my simple BT’s. Thought this was addressed back in 2013?

    #39911

    xDavidLeon
    Participant

    Started happening to me too. Might be related to upgrades in the Unity API post 5.2?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.