Created
August 1, 2020 07:23
-
-
Save flushpot1125/ebcfd173d36b494fcd097b78d9157d52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Mesh, PhysicsImpostor} from "@babylonjs/core"; | |
export default class wall_left extends Mesh { | |
//途中省略 | |
public onStart(): void { | |
this.physicsImpostor = new PhysicsImpostor(this, PhysicsImpostor.BoxImpostor, { mass: 0, friction: 0, restitution: 1.0 }); | |
// ... | |
} | |
//途中省略 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment