fix bug
This commit is contained in:
parent
163331eea4
commit
52afda214e
@ -76,7 +76,7 @@ export class Camera {
|
|||||||
}
|
}
|
||||||
get right(): vec3 {
|
get right(): vec3 {
|
||||||
const ret = vec3.create();
|
const ret = vec3.create();
|
||||||
vec3.cross(ret, this.up, this.forward)
|
vec3.cross(ret, this.forward, this.up);
|
||||||
return vec3.cross(vec3.create(),this.forward,[0,1,0]);;
|
return ret;
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user