Skip to content

Commit c27201e

Browse files
committed
removed velocity
1 parent 6f4ad9b commit c27201e

File tree

5 files changed

+2
-20
lines changed

5 files changed

+2
-20
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
todo.txt

Diff for: README.md

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ For [A-Frame](https://aframe.io).
8181
version: '1.0',
8282
precision: 1000,
8383
rotation: true,
84-
velocity: False,
8584
sprite_rotation: [0, 0, 0],
8685
frames: [<frames>]
8786
}

Diff for: exporters/blender/export_particles.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
version: '1.0',
66
precision: 1000,
77
rotation: true,
8-
velocity: False,
98
sprite_rotation: [0, 0, 0],
109
frames: [<frames>]
1110
}
@@ -32,9 +31,6 @@
3231
# Export particle rotation
3332
ROTATION = False
3433

35-
# Export particle velocity
36-
VELOCITY = False
37-
3834
# Export one each <STEP> frames
3935
STEP = 1
4036

@@ -51,7 +47,7 @@
5147
from math import floor
5248
VERSION = '1.0'
5349

54-
data = {'version': VERSION, 'precision': PRECISION, 'rotation': ROTATION, 'velocity': VELOCITY, 'frames': [], 'sprite_rotation': False }
50+
data = {'version': VERSION, 'precision': PRECISION, 'rotation': ROTATION, 'frames': [], 'sprite_rotation': False }
5551

5652
def AA(n):
5753
return floor(n * PRECISION)
@@ -91,10 +87,6 @@ def export():
9187
part.append(AA( p.rotation.to_euler().z ))
9288
part.append(AA( -p.rotation.to_euler().y ))
9389

94-
if VELOCITY:
95-
part.append(AA( p.velocity.x ))
96-
part.append(AA( p.velocity.z ))
97-
part.append(AA( -p.velocity.y ))
9890
else:
9991
part = 0
10092

Diff for: index.js

-5
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ AFRAME.registerComponent('particleplayer', {
166166
new THREE.Euler(p[3] / F, p[4] / F, p[5] / F) :
167167
null;
168168
}
169-
if (data.velocity) {
170-
this.framedata[f][i].velocity = alive ?
171-
new THREE.Vector3(p[velOffset + 3] / F, p[velOffset + 4] / F, p[velOffset + 5] / F) :
172-
null;
173-
}
174169

175170
if (alive && this.restPositions[i] === undefined) {
176171
this.restPositions[i] = this.framedata[f][i].position;

Diff for: todo

-5
This file was deleted.

0 commit comments

Comments
 (0)