Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created August 1, 2020 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/ebcfd173d36b494fcd097b78d9157d52 to your computer and use it in GitHub Desktop.
Save flushpot1125/ebcfd173d36b494fcd097b78d9157d52 to your computer and use it in GitHub Desktop.
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