mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
1a99b886b6
* basic physics abstract spec * spec tweaks * stash * cannon refactor * builtin refactor * cannon wrapper & framework tweaks * cannon wrapper import tweaks * remve unneeded code * group mask tweaks * hiding, wait for 1.0.3 * builtin tweaks * delete unneed code * export CANNON * update @cocos/cannon to 1.0.3 * using hasTigger property * fix remove cannon body * rebase * update cannon version to 1.0.4 * rename stash * rename I-rigid-body to i-rigid-body
22 lines
614 B
TypeScript
22 lines
614 B
TypeScript
import { ILifecycle } from './i-lifecycle'
|
|
import { IGroupMask } from './i-group-mask'
|
|
import { IVec3Like } from '../../core/math/type-define';
|
|
import { ColliderComponent, RigidBodyComponent } from '../../../exports/physics-framework';
|
|
|
|
export interface IBaseShape extends ILifecycle, IGroupMask {
|
|
readonly collider: ColliderComponent;
|
|
readonly attachedRigidBody: RigidBodyComponent | null;
|
|
material: any;
|
|
isTrigger: boolean;
|
|
center: IVec3Like;
|
|
}
|
|
|
|
export interface IBoxShape extends IBaseShape {
|
|
size: IVec3Like;
|
|
}
|
|
|
|
export interface ISphereShape extends IBaseShape {
|
|
radius: number;
|
|
}
|
|
|