Skip to content

Commit e8b1762

Browse files
authored
Merge pull request #2469 from riccardobl/emitsphnormal
Return normal of sphere shaped emitter
2 parents 78bf663 + 9dd99a5 commit e8b1762

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)