-updated README.md

-fixed shaders for GL2
-added Entity selection tool
-throw out tools from "Demo" window to "Tools" window
-change ComboBox to Tabs for Tools
-Added more verbose tips
-Improved and fixed BrickBreaker collisions
-fixed simple DUB issue
This commit is contained in:
Mergul 2021-03-01 12:16:02 +01:00
parent 1acd0df0ef
commit 56f870bac6
21 changed files with 332 additions and 133 deletions

View file

@ -49,11 +49,6 @@ struct CBVH
uint index;
}
struct CStatic
{
mixin ECS.Component;
}
struct CAABB
{
mixin ECS.Component;
@ -1003,6 +998,7 @@ struct AABBUpdater
@readonly CLocation[] location;
@readonly CScale[] scale;
@optional @readonly CRotation[] rotation;
@optional @readonly CStatic[] static_flag;
}
void onAddEntity(EntitiesData data)
@ -1015,6 +1011,8 @@ struct AABBUpdater
void onUpdate(EntitiesData data)
{
if(data.static_flag)return;
foreach(i; 0..data.length)
{
data.bounding[i] = AABB(data.location[i]-data.scale[i],data.location[i]+data.scale[i]);