johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

localpostion bug report #132

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
gameobject
   -gameobject
       -gameobject
            -move_gameoject <- move to path  islocal true (start position problem) 

void GenerateMoveToPathTargets(){
…..
if(plotStart){
      vector3s[1]=transform.position;
      offset=2;
}else{
    offset=1;
}

fix plz ...

if(plotStart){
    if(isLocal) {
        vector3s[1]=transform.localPosition;
    } else {
        vector3s[1]=transform.position;
    }
    offset=2;
}else{
    offset=1;
}

Original issue reported on code.google.com by prohir...@gmail.com on 22 Nov 2013 at 4:13