onTriggerEnter(other,self,contact)
{
var n=this.owner.rotation;
if(other.label === "heng"){
console.log("角度"+this.owner.rotation);
this.owner.rotation=180-n;
console.log("角度"+this.owner.rotation);
}
if(other.label === "shu"){
console.log("角度"+this.owner.rotation);
this.owner.rotation=-n;
console.log("角度"+this.owner.rotation);
}
}
一用这个方法修改角度就不知道预制体跑到哪里去了

