Rename RayShape to SeparationRayShape

Makes it clearer that it's used for special cases when picking a
collision shape.
This commit is contained in:
PouleyKetchoupp 2021-08-19 11:21:56 -07:00
parent aa4791735d
commit 3d5dc80348
37 changed files with 194 additions and 192 deletions

View file

@ -45,8 +45,8 @@ RID PhysicsServer2DSW::_shape_create(ShapeType p_shape) {
case SHAPE_WORLD_MARGIN: {
shape = memnew(WorldMarginShape2DSW);
} break;
case SHAPE_RAY: {
shape = memnew(RayShape2DSW);
case SHAPE_SEPARATION_RAY: {
shape = memnew(SeparationRayShape2DSW);
} break;
case SHAPE_SEGMENT: {
shape = memnew(SegmentShape2DSW);
@ -82,8 +82,8 @@ RID PhysicsServer2DSW::world_margin_shape_create() {
return _shape_create(SHAPE_WORLD_MARGIN);
}
RID PhysicsServer2DSW::ray_shape_create() {
return _shape_create(SHAPE_RAY);
RID PhysicsServer2DSW::separation_ray_shape_create() {
return _shape_create(SHAPE_SEPARATION_RAY);
}
RID PhysicsServer2DSW::segment_shape_create() {