碰撞系统重做
This commit is contained in:
@@ -41,10 +41,7 @@ export class baseCom extends Component {
|
||||
reset() {
|
||||
this.node.destroy();
|
||||
}
|
||||
change_collider_group(group:number){
|
||||
let collider = this.getComponent(Collider2D);
|
||||
collider.group = group;
|
||||
}
|
||||
|
||||
update(deltaTime: number) {
|
||||
this.node.setScale(v3(this.scale,this.node.scale.y,this.node.scale.z))
|
||||
this.node.setPosition(v3(this.node.position.x+deltaTime*this.speed*this.scale,this.node.position.y,this.node.position.z))
|
||||
|
||||
Reference in New Issue
Block a user