|
|
@@ -40,13 +40,13 @@ 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},
|
|
|
+ {"setSteerable", lua_PhysicsVehicleWheel_setSteerable},
|
|
|
{"setStrutConnectionOffset", lua_PhysicsVehicleWheel_setStrutConnectionOffset},
|
|
|
{"setStrutDampingCompression", lua_PhysicsVehicleWheel_setStrutDampingCompression},
|
|
|
{"setStrutDampingRelaxation", lua_PhysicsVehicleWheel_setStrutDampingRelaxation},
|
|
|
@@ -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;
|