3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Point and Click Character Movement with Orbit Cam  (Read 3310 times)

« on: August 28, 2009, 01:19:41 PM »
Point and Click Character Movement with Orbit Cam

Up - Rotate cam up
Down - Rotate cam down
Left - Rotate cam left
Right - Rotate cam right

Mouse wheel to zoom

Right click anywhere to move there

Nothing really spectacular, but can save some time. Enjoy!
« Last Edit: August 28, 2009, 01:47:23 PM by Ratticis »
« Reply #1 on: August 28, 2009, 02:37:45 PM »
Thanx Ratticis, very nice  :)
« Reply #2 on: August 29, 2009, 11:37:50 AM »
Thanks boss
« Reply #3 on: September 14, 2009, 09:14:21 PM »
 two words:simply awesome
« Reply #4 on: September 14, 2009, 09:59:10 PM »
havent seen this one, looks verrry cool and useful. perfect for one of those old graphic adventures.
Crashing Boxes - winner of the 3d games category at the 5th Uruguayan video game contest
get a copy for your iPad/iPhone!
« Reply #5 on: September 16, 2009, 04:27:21 PM »
very nice script, nearly what i needed.
Is there any Way to make it work with radial g-force? (e.g. a man walking around the earth)

i tried to change the orientation of the walking character with a Little script that should point him to the g-force location but it didn't work.
I think the mouselook and the max climbable slope in the charaktersettings have to be changed but i dont know how.

here is what i tried:

void Main()
{
Quaternion OrientationChar;
Quaternion OrientationGForce;
Quaternion OrientationResult;
Vector3 VectorChar;
Vector3 VectorGForce;

float x1,y1,z1,x2,y2,z2;


iObjectLocation(OBJ_66,VectorChar);
iQuaternionFromAxisAngle(OrientationChar,VectorChar,0);

iObjectLocation(OBJ_0,VectorGForce);
iQuaternionFromAxisAngle(OrientationGForce,VectorGForce,0);

iQuaternionToEulerAngles(OrientationChar,x1,y1,z1);
iQuaternionToEulerAngles(OrientationGForce,x2,y2,z2);

iQuaternionFromEulerAngles(OrientationResult,x1-x2,y1-y2,z1-z2, "xyz");

iObjectOrientationSet(OBJ_66,OrientationResult);
}


// OBJ_66 := character group
//OBJ_0    := skinmesh placed at g-force position


Pages: [1]