Skip to content
Snippets Groups Projects
Commit cf913574 authored by Summer G Stapleton's avatar Summer G Stapleton
Browse files

Very simple implementation (with example code) of a state-from-isd method.

parent e68d8c86
No related branches found
No related tags found
No related merge requests found
#include <json.hpp>
using json = nlohmann::json;
std::string eal::constructStateFromIsd(const std::string positionRotationData) const
{
// Parse the position and rotation data from isd
json isd = json::parse(positionRotationData);
json state;
state["m_w"] = isd.at("w");
state["m_x"] = isd.at("x");
state["m_y"] = isd.at("y");
state["m_z"] = isd.at("z");
return state.dump();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment