|
|
Collada MoonBuggy with skin animation in JavaFX.
In the scripting API for this scene graph, animated Collada models are Nodes which are also polymorphic with Timelines. You can "play" them. Relevant code:
var model = Model {
url: "lunar_lander_tris.dae"
repeatCount: Timeline.INDEFINITE
}
model.play();
var zoom = 0.0;
var scene = Scene {
background: BLACK;
camera: PerspectiveCamera {
heightAngle: 15
nearDistance: 1
farDistance: 1000
position: bind Transform.translate(0, 0, 30+zoom);
}
lights: [...]
content: model
}
...