/* Disable all sensors in "IR-only" Worlds to save performance. If the property is set to true, any geo-related components (such as GeoObjects and ActionRanges) are active. If the property is set to false, any geo-related components will not be visible on the screen, and triggers will not fire.*/
AR.context.services.sensors = false;
this.createOverlays();
},
createOverlays: function createOverlaysFn() {
// Initialize Tracker
this.tracker = new AR.Tracker("assets/tracker.wtc", {
onLoaded: this.loadingStep
});
this.modelCar = new AR.Model("assets/car.wt3", {
onLoaded: this.loadingStep,
onClick: this.toggleAnimateModel,
scale: {
x: 0.0,
y: 0.0,
z: 0.0
},
translate: {
x: 0.0,
y: 0.05,
z: 0.0
},
rotate: {
roll: -25
}
});
// instantiate the model object
//var model = new AR.Model("assets/boss.wt3");
// instantiate the model animation with the animation id
//var animation = new AR.ModelAnimation(model, "pPlane4_animation");
Pallavi Pawar
1 person has this problem