ScriptEntityParticle:

-Added scripted particles which can not face the player, having their angles be absolute in the world instead of relative to the camera.
-set/getFacePlayer() functions added.
This commit is contained in:
Luis C.M committed 2022-05-04 18:08:54 -05:00
1 parent 1cd3ff31b6
commit f16e2402a6
6 files changed
+44 -67

No files matched your search

@@ -33,6 +33,8 @@ public class ScriptEntityParticle {
public float rotationZRate = 0.0F;
public int rotationZRateStart = 0;
public boolean facePlayer = true;
public ScriptEntityParticle(String directory){
this.directory = directory;
}
@@ -47,10 +49,14 @@ public class ScriptEntityParticle {
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
facePlayer,
entityID
);
}
public boolean getFacePlayer() { return facePlayer; }
public void setFacePlayer(boolean facePlayer) { this.facePlayer = facePlayer; }
public String getDirectory() {
return directory;
}