Files
cocos4/cocos/physics/spec/i-physics-shape.ts
T
jiaxin.lai 1a99b886b6 refactor physics framework & wrapper (#5667)
* 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
2019-12-13 16:00:22 +08:00

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;
}