9#include <yaml-cpp/yaml.h>
15namespace fs = std::filesystem;
26 for (std::size_t i = 0; i < static_cast<std::size_t>(
N); ++i)
27 arr[i] = node[i].as<float>();
37std::shared_ptr<FxEntity>
buildEntity(
const std::string& entity_name,
const YAML::Node& config);
39std::shared_ptr<FxJoint>
buildJoint(
const std::string& joint_name,
const YAML::Node& config,
43 YAML::Node config =
LoadSmart(textOrPath);
46inline std::shared_ptr<FxEntity>
buildEntity(
const std::string& entity_name,
47 const std::string& textOrPath) {
48 YAML::Node config =
LoadSmart(textOrPath);
52 YAML::Node config =
LoadSmart(textOrPath);
56 YAML::Node config =
LoadSmart(textOrPath);
61 YAML::Node config =
LoadSmart(textOrPath);
Fixed-size, aligned value array.
Owns a simulated world and advances it with step().
YAML parsing and scene-builder functions.
FxShape buildShape(const YAML::Node &config)
std::shared_ptr< FxJoint > buildJoint(const std::string &joint_name, const YAML::Node &config, FxScene &scene)
FxScene buildScene(const YAML::Node &config)
FxArray< float > parseArray(const YAML::Node &node)
std::string deIndent(const std::string &raw)
YAML::Node LoadSmart(const std::string &textOrPath)
FxCollisionShape buildCollisionShape(const YAML::Node &config)
std::shared_ptr< FxEntity > buildEntity(const std::string &entity_name, const YAML::Node &config)
FxVisualShape buildVisualShape(const YAML::Node &config)
Unified circle, capsule, polygon, edge, and chain representation.