Add mult-shape sprites and actors
This commit is contained in:
@@ -13,8 +13,12 @@ struct rc_sprite2D_physics_obj
|
||||
{
|
||||
b2Body* body;
|
||||
b2Fixture* fixture;
|
||||
b2FixtureDef fixture_def;
|
||||
b2Shape* shape;
|
||||
|
||||
int fixture_offset_x;
|
||||
int fixture_offset_y;
|
||||
|
||||
int shape_type;
|
||||
|
||||
int offset_x;
|
||||
@@ -82,6 +86,9 @@ struct rc_sprite2D_obj
|
||||
int parent_canvas = -1;
|
||||
|
||||
double z;
|
||||
|
||||
int parent_sprite;
|
||||
irr::core::array<int> child_sprites;
|
||||
};
|
||||
|
||||
irr::core::array<rc_sprite2D_obj> rc_sprite;
|
||||
|
||||
Reference in New Issue
Block a user