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
  • #6016

    Yuewah Chan

    Look rotation viewing vector is zero
    RAIN.Utility.MathUtils:GetLookAtVector(Vector3, Vector3)

    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?



    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.


    Yuewah Chan

    Thank a lot

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

You must be logged in to reply to this topic.