var game = Atomic.game;
var node = self.node;

Barrels02 = self;

var idle = true;

node.position = [14, 0, -21];
node.yaw(75);
node.scale = [6, 6, 6];

function start() {

    var cache = game.cache;

    var model = node.createComponent("StaticModel");
    model.setModel(cache.getResource("Model", "Models/Barrels.mdl"));
    model.setMaterial(cache.getResource("Material", "Materials/Barrels.xml"));

    model.castShadows = true;   
     
    var body = node.createComponent("RigidBody");
    body.isKinematic = true;
    body.collisionEventMode = Atomic.COLLISION_ALWAYS;
    
    var shape = node.createComponent("CollisionShape");
    shape.setTriangleMesh(model.getModel());
    shape.size = [1, 1, 1];
    shape.position = [0, 0, 0];
}

function update(timeStep) {

}
