forked from SteamWar/SteamWar
Place lobby particle entries relative to the body
Entries get a World/Body setting. In body mode offsets, heights and wings follow the body's facing and lie along the body while gliding or swimming, so wings stay on the back. Rings circle the body but keep their world angle, so they do not turn with the player. New wings default to body; presets and rewards stay in world mode and look exactly as before.
This commit is contained in:
@@ -94,14 +94,14 @@ public class Designs {
|
||||
return values.get(WING_IMAGE).getVectors().length;
|
||||
}
|
||||
|
||||
// Wings spawn a particle on every pixel of the image, so they start sparse
|
||||
// Wings spawn a particle on every pixel of the image, so they start sparse, and sit on the back even while gliding
|
||||
@Override
|
||||
public void applyDefaults(ParameterValues values) {
|
||||
values.set(EntryParameters.COUNT, 1)
|
||||
.set(EntryParameters.SPEED, 0.0)
|
||||
.set(EntryParameters.TICK_MODE, EntryParameters.TickMode.ALWAYS)
|
||||
.set(EntryParameters.INTERVAL, 20)
|
||||
.set(EntryParameters.GLIDING, EntryParameters.Gliding.NOT_GLIDING);
|
||||
.set(EntryParameters.PLACEMENT, EntryParameters.Placement.BODY);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user