You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
renamed all Rect3.pos to Rect3.position
This commit is contained in:
committed by
Rémi Verschelde
parent
63fd693c1e
commit
935f730170
@@ -254,7 +254,7 @@ void ParticlesEditor::_generate_emission_points() {
|
||||
for (int j = 0; j < 3; j++) {
|
||||
|
||||
if (i == 0 && j == 0)
|
||||
aabb.pos = r[i].vertex[j];
|
||||
aabb.position = r[i].vertex[j];
|
||||
else
|
||||
aabb.expand_to(r[i].vertex[j]);
|
||||
}
|
||||
@@ -272,7 +272,7 @@ void ParticlesEditor::_generate_emission_points() {
|
||||
dir[Math::rand() % 3] = 1.0;
|
||||
Vector3 ofs = Vector3(1, 1, 1) - dir;
|
||||
ofs = (Vector3(1, 1, 1) - dir) * Vector3(Math::randf(), Math::randf(), Math::randf()) * aabb.size;
|
||||
ofs += aabb.pos;
|
||||
ofs += aabb.position;
|
||||
|
||||
Vector3 ofsv = ofs + aabb.size * dir;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user