-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: propagate collision events to every parent classes
- Loading branch information
1 parent
1390215
commit fbce531
Showing
3 changed files
with
65 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { FCube } from '@fibbojs/3d' | ||
import type { FComponent3dOptions, FScene3d } from '@fibbojs/3d' | ||
|
||
/** | ||
* Used to demonstrate that collisions are working with "FCube" even if the class is extended. | ||
*/ | ||
export default class MyCustomCube extends FCube { | ||
constructor(scene: FScene3d, options?: FComponent3dOptions) { | ||
super(scene, options) | ||
} | ||
|
||
onFrame(delta: number) { | ||
super.onFrame(delta) | ||
} | ||
} |
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
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