This commit is contained in:
aozhiwei 2023-02-07 16:51:14 +08:00
parent 3fd97aa3cb
commit e63af9dec7
2 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ namespace mc
void ColliderNode::Read(std::shared_ptr<a8::XObject> xobj)
{
name = xobj->At("name")->AsXValue().GetString();
Bounds_Read(bounds, xobj->At("bounds"));
transform.Read(xobj->At("transform"));
{
auto colliders_arr = xobj->At("colliders");

View File

@ -74,6 +74,7 @@ namespace mc
{
ColliderNode* parent = nullptr;
std::string name;
Bounds bounds;
Transform transform;
std::vector<Collider*> colliders;
std::map<std::string, ColliderNode*> childs;