merge the new developmentbranch into the test branch #39
@@ -76,13 +76,13 @@ public void start() {
|
||||
* Spawns the jet model at the designated spawn point, applying material, scaling, and rotation.
|
||||
*/
|
||||
private void spawnJet() {
|
||||
jetModel = app.getAssetManager().loadModel(Asset.jet.getModelPath());
|
||||
jetModel = app.getAssetManager().loadModel(Asset.jet_noGear.getModelPath());
|
||||
jetModel.setLocalTranslation(spawnPoint);
|
||||
jetModel.scale(Asset.jet.getSize());
|
||||
jetModel.scale(Asset.jet_noGear.getSize());
|
||||
jetModel.rotate(FastMath.HALF_PI, 0, 0);
|
||||
jetModel.setShadowMode(RenderQueue.ShadowMode.CastAndReceive);
|
||||
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);
|
||||
|
||||
rootNode.attachChild(jetModel);
|
||||
|
||||
Reference in New Issue
Block a user