Skip to content

Commit 9dd99a5

Browse files
committed
return normal of sphere emitter
1 parent c110698 commit 9dd99a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jme3-core/src/main/java/com/jme3/effect/shapes/EmitterSphereShape.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public void getRandomPoint(Vector3f store) {
137137
@Override
138138
public void getRandomPointAndNormal(Vector3f store, Vector3f normal) {
139139
this.getRandomPoint(store);
140+
normal.set(store).subtractLocal(center).normalizeLocal();
140141
}
141142

142143
/**

0 commit comments

Comments
 (0)