#ifndef DIRECT_STATIC_BODY_H #define DIRECT_STATIC_BODY_H #include "direct_mesh_instance.h" #include #include class World; // Thin wrapper around static body API class DirectStaticBody { public: DirectStaticBody(); ~DirectStaticBody(); void create(); void destroy(); bool is_valid() const; void set_transform(Transform transform); void add_shape(Ref shape); void remove_shape(int shape_index); void set_world(World *world); void set_shape_enabled(int shape_index, bool disabled); void set_attached_object(Object *obj); void set_debug(bool enabled, World *world); private: RID _body; Ref _shape; DirectMeshInstance _debug_mesh_instance; }; #endif // DIRECT_STATIC_BODY_H