Reworked how servers preallocate RIDs, should fix #10970
This commit is contained in:
parent
0de6cba7e7
commit
192a4d7de5
27 changed files with 196 additions and 99 deletions
|
|
@ -87,7 +87,7 @@ void SegmentShape2D::_bind_methods() {
|
|||
}
|
||||
|
||||
SegmentShape2D::SegmentShape2D()
|
||||
: Shape2D(Physics2DServer::get_singleton()->shape_create(Physics2DServer::SHAPE_SEGMENT)) {
|
||||
: Shape2D(Physics2DServer::get_singleton()->segment_shape_create()) {
|
||||
|
||||
a = Vector2();
|
||||
b = Vector2(0, 10);
|
||||
|
|
@ -146,7 +146,7 @@ real_t RayShape2D::get_length() const {
|
|||
}
|
||||
|
||||
RayShape2D::RayShape2D()
|
||||
: Shape2D(Physics2DServer::get_singleton()->shape_create(Physics2DServer::SHAPE_RAY)) {
|
||||
: Shape2D(Physics2DServer::get_singleton()->ray_shape_create()) {
|
||||
|
||||
length = 20;
|
||||
_update_shape();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue