Drought.Entity.MovableEntity.setOrientation C# (CSharp) Method

setOrientation() private method

private setOrientation ( ) : void
return void
        private void setOrientation()
        {
            orientation.Up = normal;
            orientation.Right = Vector3.Cross(orientation.Up, heading);
            orientation.Right = Vector3.Normalize(orientation.Right);
            orientation.Forward = Vector3.Cross(-orientation.Right, orientation.Up);
            orientation.Forward = Vector3.Normalize(orientation.Forward);
        }

Same methods

MovableEntity::setOrientation ( Matrix anOrientation ) : void