News Forums RAIN General Discussion and Troubleshooting Look rotation viewing vector is zero warning is annoying

This topic contains 2 replies, has 2 voices, and was last updated by  Yuewah Chan 1 year, 7 months ago.

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

    Yuewah Chan
    Participant

    Look rotation viewing vector is zero
    UnityEngine.Quaternion:LookRotation(Vector3)
    RAIN.Utility.MathUtils:GetLookAtVector(Vector3, Vector3)
    RAIN.Motion.MecanimMotor:Move()

    I find that it is because of the following code in MecanimMotor:Move()
    MathUtils.GetLookAtVector(this._ai.Kinematic.Position, nextPathWaypoint.Position)
    where this._ai.Kinematic.Position is equal to nextPathWaypoint.Position

    Actually, I am using my custom Path Navigator, is it possible checking for this situation?

    #6022

    prime
    Keymaster

    I made a change to our GetLookAtVector method so that this doesn’t happen anymore. The new method requires a default look at vector for cases when the look at point is the same as the look from point. Thanks for the catch.

    #6043

    Yuewah Chan
    Participant

    Thank a lot

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

You must be logged in to reply to this topic.