Add a new HashSet template
* Intended to replace RBSet in most cases. * Optimized for iteration speed
This commit is contained in:
@ -127,7 +127,7 @@ public:
|
||||
struct RayParameters {
|
||||
Vector2 from;
|
||||
Vector2 to;
|
||||
RBSet<RID> exclude;
|
||||
HashSet<RID> exclude;
|
||||
uint32_t collision_mask = UINT32_MAX;
|
||||
|
||||
bool collide_with_bodies = true;
|
||||
@ -157,7 +157,7 @@ public:
|
||||
struct PointParameters {
|
||||
Vector2 position;
|
||||
ObjectID canvas_instance_id;
|
||||
RBSet<RID> exclude;
|
||||
HashSet<RID> exclude;
|
||||
uint32_t collision_mask = UINT32_MAX;
|
||||
|
||||
bool collide_with_bodies = true;
|
||||
@ -173,7 +173,7 @@ public:
|
||||
Transform2D transform;
|
||||
Vector2 motion;
|
||||
real_t margin = 0.0;
|
||||
RBSet<RID> exclude;
|
||||
HashSet<RID> exclude;
|
||||
uint32_t collision_mask = UINT32_MAX;
|
||||
|
||||
bool collide_with_bodies = true;
|
||||
@ -483,8 +483,8 @@ public:
|
||||
Vector2 motion;
|
||||
real_t margin = 0.08;
|
||||
bool collide_separation_ray = false;
|
||||
RBSet<RID> exclude_bodies;
|
||||
RBSet<ObjectID> exclude_objects;
|
||||
HashSet<RID> exclude_bodies;
|
||||
HashSet<ObjectID> exclude_objects;
|
||||
bool recovery_as_collision = false;
|
||||
|
||||
MotionParameters() {}
|
||||
|
||||
Reference in New Issue
Block a user