UnityVector3.js 362 B

123456789101112131415161718
  1. import {NativeStruct} from "../struct/NativeStruct";
  2. export class UnityVector3 extends NativeStruct{
  3. x(){
  4. return this.readFloat();
  5. }
  6. y(){
  7. return this.add(0x4).readFloat();
  8. }
  9. z(){
  10. return this.add(0x8).readFloat();
  11. }
  12. toString(){
  13. return "{ x : "+this.x()+", y :" +this.y()+" z :"+this.z()+" }";
  14. }
  15. }