-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
body.setRotation(mtx) don't work #10
Comments
i'm on new update i do the same for rotation rotation is not full complete but i'm near |
What the fuck does resetRotation is supposed to be? setRotation, as in like why does it bounce my player into oblivions. Hold up.... |
wait... i think i got it youre engine is SO counterintuitive mgl; Let me tell you what, look up THREE.js and basically make it work with it nobrainerly, I will pay you when I get profit |
getRotation() isn't even a function If I do |
setRotation:function(x,y,z){
var r = OIMO.EulerToAxis(x* OIMO.TO_RAD, y* OIMO.TO_RAD, z* OIMO.TO_RAD);
var rad = r[0];
var len = r[1]r[1]+r[2]r[2]+r[3]r[3];
if(len>0){
len=1/Math.sqrt(len);
r[1]=len;
r[2]=len;
r[3]=len;
}
var sin=Math.sin(rad_0.5);
var cos=Math.cos(rad_0.5);
The text was updated successfully, but these errors were encountered: