Merge pull request #90763 from Calinou/worldboundaryshape-increase-size
Increase size of WorldBoundaryShape to be much larger
This commit is contained in:
commit
093d06480a
|
@ -123,7 +123,7 @@ void GodotWorldBoundaryShape2D::set_data(const Variant &p_data) {
|
|||
ERR_FAIL_COND(arr.size() != 2);
|
||||
normal = arr[0];
|
||||
d = arr[1];
|
||||
configure(Rect2(Vector2(-1e4, -1e4), Vector2(1e4 * 2, 1e4 * 2)));
|
||||
configure(Rect2(Vector2(-1e15, -1e15), Vector2(1e15 * 2, 1e15 * 2)));
|
||||
}
|
||||
|
||||
Variant GodotWorldBoundaryShape2D::get_data() const {
|
||||
|
|
|
@ -152,7 +152,7 @@ Vector3 GodotWorldBoundaryShape3D::get_moment_of_inertia(real_t p_mass) const {
|
|||
|
||||
void GodotWorldBoundaryShape3D::_setup(const Plane &p_plane) {
|
||||
plane = p_plane;
|
||||
configure(AABB(Vector3(-1e4, -1e4, -1e4), Vector3(1e4 * 2, 1e4 * 2, 1e4 * 2)));
|
||||
configure(AABB(Vector3(-1e15, -1e15, -1e15), Vector3(1e15 * 2, 1e15 * 2, 1e15 * 2)));
|
||||
}
|
||||
|
||||
void GodotWorldBoundaryShape3D::set_data(const Variant &p_data) {
|
||||
|
|
Loading…
Reference in New Issue