mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Added assets to identify the player. Needs to merge with 3d player specification for code side to be implemented.
#story[1266] #implement
This commit is contained in:
@@ -104,6 +104,8 @@ public class ModelFactory {
|
|||||||
case START_LINE:
|
case START_LINE:
|
||||||
case GATE_LINE:
|
case GATE_LINE:
|
||||||
return makeGate(assets);
|
return makeGate(assets);
|
||||||
|
case PLAYER_IDENTIFIER:
|
||||||
|
return makeIdentifierIcon(assets);
|
||||||
default:
|
default:
|
||||||
return new Model(assets, null);
|
return new Model(assets, null);
|
||||||
}
|
}
|
||||||
@@ -164,4 +166,12 @@ public class ModelFactory {
|
|||||||
);
|
);
|
||||||
return new Model(assets, null);
|
return new Model(assets, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static Model makeIdentifierIcon(Group assets) {
|
||||||
|
assets.getTransforms().addAll(
|
||||||
|
new Rotate(90, new Point3D(1,0,0)),
|
||||||
|
new Scale(0.5, 0.5, 0.5)
|
||||||
|
);
|
||||||
|
return new Model(assets, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ public enum ModelType {
|
|||||||
BORDER_BARRIER ("barrier_segment.dae"),
|
BORDER_BARRIER ("barrier_segment.dae"),
|
||||||
FINISH_LINE ("finish_line.dae"),
|
FINISH_LINE ("finish_line.dae"),
|
||||||
START_LINE ("start_line.dae"),
|
START_LINE ("start_line.dae"),
|
||||||
GATE_LINE ("gate_line.dae");
|
GATE_LINE ("gate_line.dae"),
|
||||||
|
PLAYER_IDENTIFIER ("player_identifier.dae");
|
||||||
|
|
||||||
final String filename;
|
final String filename;
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user