This commit is contained in:
Cedric Beck
2024-12-08 23:23:27 +01:00

View File

@@ -76,13 +76,13 @@ public void start() {
* Spawns the jet model at the designated spawn point, applying material, scaling, and rotation. * Spawns the jet model at the designated spawn point, applying material, scaling, and rotation.
*/ */
private void spawnJet() { private void spawnJet() {
jetModel = app.getAssetManager().loadModel(Asset.jet.getModelPath()); jetModel = app.getAssetManager().loadModel(Asset.jet_noGear.getModelPath());
jetModel.setLocalTranslation(spawnPoint); jetModel.setLocalTranslation(spawnPoint);
jetModel.scale(Asset.jet.getSize()); jetModel.scale(Asset.jet_noGear.getSize());
jetModel.rotate(FastMath.HALF_PI, 0, 0); jetModel.rotate(FastMath.HALF_PI, 0, 0);
jetModel.setShadowMode(RenderQueue.ShadowMode.CastAndReceive); jetModel.setShadowMode(RenderQueue.ShadowMode.CastAndReceive);
Material mat = new Material(app.getAssetManager(), "Common/MatDefs/Light/Lighting.j3md"); Material mat = new Material(app.getAssetManager(), "Common/MatDefs/Light/Lighting.j3md");
mat.setTexture("DiffuseMap", app.getAssetManager().loadTexture(Asset.jet.getDiffPath())); mat.setTexture("DiffuseMap", app.getAssetManager().loadTexture(Asset.jet_noGear.getDiffPath()));
jetModel.setMaterial(mat); jetModel.setMaterial(mat);
rootNode.attachChild(jetModel); rootNode.attachChild(jetModel);