playMaker

Author Topic: Normalise bug with Input touches and vector 2 normalise  (Read 1732 times)

Filippo

  • Playmaker Newbie
  • *
  • Posts: 1
Normalise bug with Input touches and vector 2 normalise
« on: January 01, 2015, 08:36:44 AM »
Hi,

This is driving me crazy and we be grateful if someone could help.

Using the "input touches get dragging info" action and then applying the "vector 2 normalise" action gives me strange results.

I eventually ran the playmaker get touch info side by side and the discrepancy was obvious.

eg.
"Get touch info action" finger top right of device: vector: 1.0,1.0,1.0 as expected
input touches get dragging info finger top right of device: vector: 1.0,0.3

But the co-ordinates seemed wrong all over the screen

Is this a bug?

Thanks
Filippo



UPDATE

The bug seems to be in the normalise vector 2 (and vector 3) action.

As a work around I:
1. Converted the vector 2 to a vector 3.
2. Used "screen to world point" action.
3. Reversed it with "world to screen point" action. Using normalise on this action gave the correct result.

Thanks
Filippo.
« Last Edit: January 01, 2015, 09:34:47 AM by Filippo »