|
|
On 27-9-2014 15:23, kurtz le pirate wrote:
> because sometimes <Norm> is equal to <0.000, 1.000, 0.000>
> then, you caculate VerAng with :
> #local VerAng = VAngleD(<Norm.x, 0, Norm.z>, Norm);
>
> first parameter become <0.000, 0.000, 0.000>
>
> VAngleD use vnormalize that is not defined for a null vector.
>
> and you get :
> Possible Parse Error: Normalizing zero-length vector.
>
>
> you can, for exemple, correct this by adding smalls values to <Norm>
> #if ((Norm.x = 0.0) & (Norm.z = 0.0))
> #local Norm = <0.0001, Norm.y, 0.0001>;
> #end
>
Simple and effective indeed. Thank you. I had difficulty in visualizing
what was exactly happening.
Thomas
Post a reply to this message
|
|