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