Skip to content

Commit

Permalink
Tuning: Fixed broken flexbodywheels
Browse files Browse the repository at this point in the history
I give up on understanding why the offset and rotation works differently now...
  • Loading branch information
ohlidalp committed Dec 16, 2023
1 parent 7ab07b7 commit 887c8d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/main/physics/ActorSpawner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4350,7 +4350,7 @@ void ActorSpawner::ProcessFlexBodyWheel(RigDef::FlexBodyWheel & def)
TuneupUtil::getTweakedWheelSide(m_actor->getUsedTuneupEntry(), wheel_id, def.side),
TuneupUtil::getTweakedWheelMedia(m_actor->getUsedTuneupEntry(), wheel_id, 0, def.rim_mesh_name),
TuneupUtil::getTweakedWheelMediaRG(m_actor, wheel_id, 0),
TuneupUtil::getTweakedWheelMedia(m_actor->getUsedTuneupEntry(), wheel_id, 1, def.rim_mesh_name),
TuneupUtil::getTweakedWheelMedia(m_actor->getUsedTuneupEntry(), wheel_id, 1, def.tyre_mesh_name),
TuneupUtil::getTweakedWheelMediaRG(m_actor, wheel_id, 1)
);

Expand Down Expand Up @@ -5086,8 +5086,8 @@ void ActorSpawner::CreateFlexBodyWheelVisuals(
node_base_index,
axis_node_1,
axis_node_2,
Ogre::Vector3(0.5,0,0),
Ogre::Vector3(Ogre::Degree(90).valueRadians(), 0, 0), // ?? Orig: Ogre::Quaternion(Ogre::Degree(90), Ogre::Vector3::UNIT_Y)
Ogre::Vector3(0.5f, 0.5f, 0.f),
Ogre::Vector3(0.f, 0.f, 0.f),
node_indices,
tire_mesh_name,
tire_mesh_rg
Expand Down

0 comments on commit 887c8d5

Please sign in to comment.