The object is not cloning, this is my code.
var OtherInteractions = pc.createScript(‘otherInteractions’);
OtherInteractions.attributes.add(‘cubentity’,{type: ‘entity’});
OtherInteractions.prototype.initialize = function() {
};
OtherInteractions.prototype.update = function(dt) {
this.entity.clone(this.cubentity);
};
The object is a rigidbody so I do not see why it is not cloning. I am stressed out, i can’t find out how to make an object do something when it hits a specific rigidbody, and I don’t know what to do here. I need help. I have to find out something new to make my game.