mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Removed unnecessary assignments
This commit is contained in:
parent
4717d37bfa
commit
738d2ab969
37 changed files with 65 additions and 128 deletions
|
|
@ -270,9 +270,7 @@ void ParticlesEditor::_generate_emission_points() {
|
|||
|
||||
Vector3 dir;
|
||||
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.position;
|
||||
Vector3 ofs = (Vector3(1, 1, 1) - dir) * Vector3(Math::randf(), Math::randf(), Math::randf()) * aabb.size + aabb.position;
|
||||
|
||||
Vector3 ofsv = ofs + aabb.size * dir;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue