Falling bricks and collision filters
This commit is contained in:
@@ -4,18 +4,40 @@
|
||||
|
||||
namespace dd
|
||||
{
|
||||
|
||||
namespace CollisionLayer
|
||||
{
|
||||
enum Type
|
||||
{
|
||||
Pad = 1 << 0,
|
||||
Ball = 1 << 1,
|
||||
Brick = 1 << 2,
|
||||
Water = 1 << 3,
|
||||
PowerUp = 1 << 4,
|
||||
Other = 1 << 5,
|
||||
Wall = 1 << 6
|
||||
};
|
||||
}
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct Physics: public Component
|
||||
{
|
||||
//idk if anything should be here :)
|
||||
bool Static = true;
|
||||
bool Calculate = false;
|
||||
float GravityScale = 0.f;
|
||||
CollisionLayer::Type Category = CollisionLayer::Type::Other;
|
||||
CollisionLayer::Type Mask =
|
||||
CollisionLayer::Type::Pad |
|
||||
CollisionLayer::Type::Ball |
|
||||
CollisionLayer::Type::Brick |
|
||||
CollisionLayer::Type::Water |
|
||||
CollisionLayer::Type::PowerUp |
|
||||
CollisionLayer::Type::Wall |
|
||||
CollisionLayer::Type::Other;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif //DAYDREAM_CPHYSICS_H
|
||||
|
||||
Reference in New Issue
Block a user