Lua works; narrator works
This commit is contained in:
@@ -589,18 +589,19 @@ TerrainModule::TerrainModule(flecs::world &ecs)
|
||||
.position
|
||||
<< std::endl;
|
||||
}
|
||||
flecs::entity player = ECS::player;
|
||||
CharacterLocation &loc =
|
||||
player.get_mut<CharacterLocation>();
|
||||
height = get_height(terrain.mTerrainGroup,
|
||||
loc.position);
|
||||
loc.position.y = height + 0.0f;
|
||||
player.get<CharacterBase>()
|
||||
.mBodyNode->setPosition(loc.position);
|
||||
player.get<CharacterBase>()
|
||||
.mBodyNode->setOrientation(
|
||||
Ogre::Quaternion());
|
||||
player.modified<CharacterLocation>();
|
||||
}
|
||||
flecs::entity player = ECS::player;
|
||||
CharacterLocation &loc =
|
||||
player.get_mut<CharacterLocation>();
|
||||
float height =
|
||||
get_height(terrain.mTerrainGroup, loc.position);
|
||||
loc.position.y = height + 0.0f;
|
||||
player.get<CharacterBase>().mBodyNode->setPosition(
|
||||
loc.position);
|
||||
player.get<CharacterBase>().mBodyNode->setOrientation(
|
||||
Ogre::Quaternion());
|
||||
player.modified<CharacterLocation>();
|
||||
});
|
||||
}
|
||||
float TerrainModule::get_height(Ogre::TerrainGroup *group,
|
||||
|
||||
Reference in New Issue
Block a user