playMaker

Author Topic: Vector3Normalized 1.1 BUG [FIXED]  (Read 1669 times)

Razieln64

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Vector3Normalized 1.1 BUG [FIXED]
« on: July 23, 2011, 12:49:51 PM »
I've just checked and the normalization of a vector does not take place. The Vector3Normalize action doesn't normalize a vector as it should.

I've replaced the faulty line with an assignation an now it works fine.

This works fine:
Code: [Select]
vector3Variable.Value = vector3Variable.Value.normalized;
However this does not :
Code: [Select]
vector3Variable.Value.Normalize();
You can validate this by showing the vector's value with a Debug.Log() call. If the components are over 1 then it doesn't normalize.
« Last Edit: October 06, 2011, 12:51:40 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Vector3Normalized 1.1 BUG
« Reply #1 on: July 25, 2011, 10:10:33 PM »
Thanks! I've added your fix to the next update.