I want to do this for a collider, in order to make it follow a orbitcamera:
var CopyPos = pc.createScript('copyPos');
// initialize code called once per entity
CopyPos.prototype.initialize = function() {
};
// update code called every frame
CopyPos.prototype.update = function(dt) {
this.entity.setLocalPosition(this.app.root.findByName("Camera").getLocalPosition());
};
Does not work.