Hi everyone. I have been using the following function to convert a rotation along the Y axis to a euler angle.
vector3df Camera::getRotationDegrees(vector3df rotation) {
vector3df angle = vector3df(0.0f, 0.0f, 0.0f);
vector3df target = vector3df(0, 0, 1);
matrix4 matrix;
matrix ...
Search found 18 matches
- Wed Apr 25, 2007 1:54 pm
- Forum: Beginners Help
- Topic: Matrix to Euler Angles, for all XYZ.
- Replies: 0
- Views: 299
- Sun Apr 22, 2007 1:17 pm
- Forum: Beginners Help
- Topic: Using Newton to check if an object is in line of sight.
- Replies: 4
- Views: 505
- Sun Apr 22, 2007 7:22 am
- Forum: Beginners Help
- Topic: Using Newton to check if an object is in line of sight.
- Replies: 4
- Views: 505
Using Newton to check if an object is in line of sight.
Hi again everyone. My goal is to determine if an object is in line of sight of another object. For example, if there is a tree impeding the camera's view of the character. I thought this is something that could be done with NewtonCollisionRayCast, but if anyone knows of another way I am all ears ...
- Tue Apr 17, 2007 7:27 am
- Forum: Beginners Help
- Topic: Getting the angle of a rotation. getHorizontalAngle?
- Replies: 1
- Views: 296
Getting the angle of a rotation. getHorizontalAngle?
I think I might be doing something wrong. Take for example the following picture.
http://www.aniaw.net/_/angle.jpg
The object is rotated to face the direction of the red arrow. This works correctly. The rotation is smooth and no problems occur. However, I need to calculate the angle of the ...
http://www.aniaw.net/_/angle.jpg
The object is rotated to face the direction of the red arrow. This works correctly. The rotation is smooth and no problems occur. However, I need to calculate the angle of the ...
- Tue Apr 17, 2007 5:11 am
- Forum: Beginners Help
- Topic: Camera rotation is always up?
- Replies: 3
- Views: 302
- Tue Apr 17, 2007 4:32 am
- Forum: Beginners Help
- Topic: Camera rotation is always up?
- Replies: 3
- Views: 302
- Tue Apr 17, 2007 2:48 am
- Forum: Beginners Help
- Topic: Camera rotation is always up?
- Replies: 3
- Views: 302
Camera rotation is always up?
Hi everyone. I have a simple camera attached to an object within the game. I use the following to create the camera.
cameraNode = sceneManager -> addCameraSceneNode(oNode, vector3df(0, 0, 0), vector3df(0, 0, 0), -1);
No matter what values I set for the camera rotation, the camera always looks up ...
cameraNode = sceneManager -> addCameraSceneNode(oNode, vector3df(0, 0, 0), vector3df(0, 0, 0), -1);
No matter what values I set for the camera rotation, the camera always looks up ...
- Tue Apr 17, 2007 1:33 am
- Forum: Advanced Help
- Topic: Moving an object with Newton collision.
- Replies: 6
- Views: 997
- Mon Apr 16, 2007 1:00 pm
- Forum: Advanced Help
- Topic: Moving an object with Newton collision.
- Replies: 6
- Views: 997
Hi again, thanks a lot for the replies! What roxaz posted is similar to what I thought had to happen. However, when I tried it, pushing forward doesn't do anything. It doesn't look like the callbacks are being called, although they are set correctly as they do get called when the object is added and ...
- Mon Apr 16, 2007 8:47 am
- Forum: Advanced Help
- Topic: Moving an object with Newton collision.
- Replies: 6
- Views: 997
Moving an object with Newton collision.
I am curious how you force an object to move with Newton... for example, if I press forward on my keyboard, it will move a ball within the program forward.
I have tried to look at the Character Controller tutorial that comes with Newton, but it is much too advanced for my current understanding and ...
I have tried to look at the Character Controller tutorial that comes with Newton, but it is much too advanced for my current understanding and ...
- Mon Apr 16, 2007 1:10 am
- Forum: Beginners Help
- Topic: Some simple organization questions.
- Replies: 22
- Views: 2066
- Mon Apr 16, 2007 12:16 am
- Forum: Beginners Help
- Topic: Some simple organization questions.
- Replies: 22
- Views: 2066
- Sun Apr 15, 2007 1:28 pm
- Forum: Beginners Help
- Topic: Cylinders with Newton
- Replies: 5
- Views: 395
- Sun Apr 15, 2007 12:49 pm
- Forum: Beginners Help
- Topic: Cylinders with Newton
- Replies: 5
- Views: 395
- Sun Apr 15, 2007 11:10 am
- Forum: Beginners Help
- Topic: Cylinders with Newton
- Replies: 5
- Views: 395
Cylinders with Newton
I was going to post this on Newton's forum, but it is impossible to register for, so I have to do it here. Please excuse me if this is not in the correct forum.
Within the following picture, all of the cylinders are at rest. The one at an angle is not moving and identifies the problem.
http://www ...
Within the following picture, all of the cylinders are at rest. The one at an angle is not moving and identifies the problem.
http://www ...