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