3#include "pixelbullet/physics/physics_types.h"
4#include "pixelbullet/serialization/node.h"
10inline Node& operator<<(
Node& node,
const ColliderShapeType& value)
14 case ColliderShapeType::Box:
17 case ColliderShapeType::Sphere:
20 case ColliderShapeType::Capsule:
27inline const Node& operator>>(
const Node& node, ColliderShapeType& value)
29 std::string serialized;
31 if (serialized ==
"Sphere")
33 value = ColliderShapeType::Sphere;
35 else if (serialized ==
"Capsule")
37 value = ColliderShapeType::Capsule;
41 value = ColliderShapeType::Box;
46inline Node& operator<<(
Node& node,
const RigidBodyMotionType& value)
50 case RigidBodyMotionType::Static:
53 case RigidBodyMotionType::Kinematic:
56 case RigidBodyMotionType::Dynamic:
63inline const Node& operator>>(
const Node& node, RigidBodyMotionType& value)
65 std::string serialized;
67 if (serialized ==
"Kinematic")
69 value = RigidBodyMotionType::Kinematic;
71 else if (serialized ==
"Dynamic")
73 value = RigidBodyMotionType::Dynamic;
77 value = RigidBodyMotionType::Static;
Represents a hierarchical node capable of storing various data types and supporting YAML serializatio...
Definition node.h:49