m4m.framework.boxcollider2d
@meta4d/engine / Exports / m4m / framework / boxcollider2d
Class: boxcollider2d
language
zh_CN
classdesc
2d矩形碰撞盒
version
m4m 1.0
Implements
Table of contents
Constructors
Methods
Properties
Constructors
constructor
• new boxcollider2d()
Methods
getBound
▸ getBound(): obb2d
language
zh_CN
classdesc
获取obb2d
version
m4m 1.0
Returns
Implementation of
Defined in
framework/2d/component/boxcollider2d.ts:29
intersectsTransform
▸ intersectsTransform(tran
): boolean
language
zh_CN
classdesc
检测碰撞
version
m4m 1.0
Parameters
tran
Returns
boolean
Implementation of
ICollider2d.intersectsTransform
Defined in
framework/2d/component/boxcollider2d.ts:41
onPlay
▸ onPlay(): void
Returns
void
Implementation of
Defined in
framework/2d/component/boxcollider2d.ts:83
remove
▸ remove(): void
Returns
void
Implementation of
Defined in
framework/2d/component/boxcollider2d.ts:92
start
▸ start(): void
Returns
void
Implementation of
Defined in
framework/2d/component/boxcollider2d.ts:80
update
▸ update(delta
): void
Parameters
delta
number
Returns
void
Implementation of
Defined in
framework/2d/component/boxcollider2d.ts:86
Properties
transform
• transform: transform2D
Implementation of
Defined in
framework/2d/component/boxcollider2d.ts:18
ClassName
▪ Static
Readonly
ClassName: string
= "boxcollider2d"
Defined in
Last updated