|
|
@@ -27,7 +27,7 @@ void luaRegister_PhysicsVehicleWheel()
|
|
|
{"getNode", lua_PhysicsVehicleWheel_getNode},
|
|
|
{"getRollInfluence", lua_PhysicsVehicleWheel_getRollInfluence},
|
|
|
{"getShapeType", lua_PhysicsVehicleWheel_getShapeType},
|
|
|
- {"getStrutConnectionPoint", lua_PhysicsVehicleWheel_getStrutConnectionPoint},
|
|
|
+ {"getStrutConnectionOffset", lua_PhysicsVehicleWheel_getStrutConnectionOffset},
|
|
|
{"getStrutDampingCompression", lua_PhysicsVehicleWheel_getStrutDampingCompression},
|
|
|
{"getStrutDampingRelaxation", lua_PhysicsVehicleWheel_getStrutDampingRelaxation},
|
|
|
{"getStrutForceMax", lua_PhysicsVehicleWheel_getStrutForceMax},
|
|
|
@@ -40,14 +40,14 @@ void luaRegister_PhysicsVehicleWheel()
|
|
|
{"getWheelRadius", lua_PhysicsVehicleWheel_getWheelRadius},
|
|
|
{"isDynamic", lua_PhysicsVehicleWheel_isDynamic},
|
|
|
{"isEnabled", lua_PhysicsVehicleWheel_isEnabled},
|
|
|
- {"isFront", lua_PhysicsVehicleWheel_isFront},
|
|
|
{"isKinematic", lua_PhysicsVehicleWheel_isKinematic},
|
|
|
+ {"isSteerable", lua_PhysicsVehicleWheel_isSteerable},
|
|
|
{"removeCollisionListener", lua_PhysicsVehicleWheel_removeCollisionListener},
|
|
|
{"setEnabled", lua_PhysicsVehicleWheel_setEnabled},
|
|
|
{"setFrictionBreakout", lua_PhysicsVehicleWheel_setFrictionBreakout},
|
|
|
- {"setFront", lua_PhysicsVehicleWheel_setFront},
|
|
|
{"setRollInfluence", lua_PhysicsVehicleWheel_setRollInfluence},
|
|
|
- {"setStrutConnectionPoint", lua_PhysicsVehicleWheel_setStrutConnectionPoint},
|
|
|
+ {"setSteerable", lua_PhysicsVehicleWheel_setSteerable},
|
|
|
+ {"setStrutConnectionOffset", lua_PhysicsVehicleWheel_setStrutConnectionOffset},
|
|
|
{"setStrutDampingCompression", lua_PhysicsVehicleWheel_setStrutDampingCompression},
|
|
|
{"setStrutDampingRelaxation", lua_PhysicsVehicleWheel_setStrutDampingRelaxation},
|
|
|
{"setStrutForceMax", lua_PhysicsVehicleWheel_setStrutForceMax},
|
|
|
@@ -405,7 +405,7 @@ int lua_PhysicsVehicleWheel_getShapeType(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_PhysicsVehicleWheel_getStrutConnectionPoint(lua_State* state)
|
|
|
+int lua_PhysicsVehicleWheel_getStrutConnectionOffset(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -422,13 +422,13 @@ int lua_PhysicsVehicleWheel_getStrutConnectionPoint(lua_State* state)
|
|
|
ScriptUtil::LuaArray<Vector3> param1 = ScriptUtil::getObjectPointer<Vector3>(2, "Vector3", false);
|
|
|
|
|
|
PhysicsVehicleWheel* instance = getInstance(state);
|
|
|
- instance->getStrutConnectionPoint(param1);
|
|
|
+ instance->getStrutConnectionOffset(param1);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lua_pushstring(state, "lua_PhysicsVehicleWheel_getStrutConnectionPoint - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_PhysicsVehicleWheel_getStrutConnectionOffset - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
}
|
|
|
break;
|
|
|
@@ -889,7 +889,7 @@ int lua_PhysicsVehicleWheel_isEnabled(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_PhysicsVehicleWheel_isFront(lua_State* state)
|
|
|
+int lua_PhysicsVehicleWheel_isKinematic(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -902,7 +902,7 @@ int lua_PhysicsVehicleWheel_isFront(lua_State* state)
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
PhysicsVehicleWheel* instance = getInstance(state);
|
|
|
- bool result = instance->isFront();
|
|
|
+ bool result = instance->isKinematic();
|
|
|
|
|
|
// Push the return value onto the stack.
|
|
|
lua_pushboolean(state, result);
|
|
|
@@ -911,7 +911,7 @@ int lua_PhysicsVehicleWheel_isFront(lua_State* state)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lua_pushstring(state, "lua_PhysicsVehicleWheel_isFront - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_PhysicsVehicleWheel_isKinematic - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
}
|
|
|
break;
|
|
|
@@ -926,7 +926,7 @@ int lua_PhysicsVehicleWheel_isFront(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_PhysicsVehicleWheel_isKinematic(lua_State* state)
|
|
|
+int lua_PhysicsVehicleWheel_isSteerable(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -939,7 +939,7 @@ int lua_PhysicsVehicleWheel_isKinematic(lua_State* state)
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
PhysicsVehicleWheel* instance = getInstance(state);
|
|
|
- bool result = instance->isKinematic();
|
|
|
+ bool result = instance->isSteerable();
|
|
|
|
|
|
// Push the return value onto the stack.
|
|
|
lua_pushboolean(state, result);
|
|
|
@@ -948,7 +948,7 @@ int lua_PhysicsVehicleWheel_isKinematic(lua_State* state)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lua_pushstring(state, "lua_PhysicsVehicleWheel_isKinematic - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_PhysicsVehicleWheel_isSteerable - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
}
|
|
|
break;
|
|
|
@@ -1127,7 +1127,7 @@ int lua_PhysicsVehicleWheel_setFrictionBreakout(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_PhysicsVehicleWheel_setFront(lua_State* state)
|
|
|
+int lua_PhysicsVehicleWheel_setRollInfluence(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -1138,19 +1138,19 @@ int lua_PhysicsVehicleWheel_setFront(lua_State* state)
|
|
|
case 2:
|
|
|
{
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
+ lua_type(state, 2) == LUA_TNUMBER)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
- bool param1 = ScriptUtil::luaCheckBool(state, 2);
|
|
|
+ float param1 = (float)luaL_checknumber(state, 2);
|
|
|
|
|
|
PhysicsVehicleWheel* instance = getInstance(state);
|
|
|
- instance->setFront(param1);
|
|
|
+ instance->setRollInfluence(param1);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lua_pushstring(state, "lua_PhysicsVehicleWheel_setFront - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_PhysicsVehicleWheel_setRollInfluence - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
}
|
|
|
break;
|
|
|
@@ -1165,7 +1165,7 @@ int lua_PhysicsVehicleWheel_setFront(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_PhysicsVehicleWheel_setRollInfluence(lua_State* state)
|
|
|
+int lua_PhysicsVehicleWheel_setSteerable(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -1176,19 +1176,19 @@ int lua_PhysicsVehicleWheel_setRollInfluence(lua_State* state)
|
|
|
case 2:
|
|
|
{
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER)
|
|
|
+ lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
- float param1 = (float)luaL_checknumber(state, 2);
|
|
|
+ bool param1 = ScriptUtil::luaCheckBool(state, 2);
|
|
|
|
|
|
PhysicsVehicleWheel* instance = getInstance(state);
|
|
|
- instance->setRollInfluence(param1);
|
|
|
+ instance->setSteerable(param1);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lua_pushstring(state, "lua_PhysicsVehicleWheel_setRollInfluence - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_PhysicsVehicleWheel_setSteerable - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
}
|
|
|
break;
|
|
|
@@ -1203,7 +1203,7 @@ int lua_PhysicsVehicleWheel_setRollInfluence(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_PhysicsVehicleWheel_setStrutConnectionPoint(lua_State* state)
|
|
|
+int lua_PhysicsVehicleWheel_setStrutConnectionOffset(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -1220,13 +1220,13 @@ int lua_PhysicsVehicleWheel_setStrutConnectionPoint(lua_State* state)
|
|
|
ScriptUtil::LuaArray<Vector3> param1 = ScriptUtil::getObjectPointer<Vector3>(2, "Vector3", true);
|
|
|
|
|
|
PhysicsVehicleWheel* instance = getInstance(state);
|
|
|
- instance->setStrutConnectionPoint(*param1);
|
|
|
+ instance->setStrutConnectionOffset(*param1);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lua_pushstring(state, "lua_PhysicsVehicleWheel_setStrutConnectionPoint - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_PhysicsVehicleWheel_setStrutConnectionOffset - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
}
|
|
|
break;
|