m4m.framework.boxcollider2d

@meta4d/engine / Exports / m4m / framework / boxcollider2d

Class: boxcollider2d

m4m.framework.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

obb2d

Implementation of

ICollider2d.getBound

Defined in

framework/2d/component/boxcollider2d.ts:29


intersectsTransform

intersectsTransform(tran): boolean

language zh_CN

classdesc 检测碰撞

version m4m 1.0

Parameters

Name
Type

tran

Returns

boolean

Implementation of

ICollider2d.intersectsTransform

Defined in

framework/2d/component/boxcollider2d.ts:41


onPlay

onPlay(): void

Returns

void

Implementation of

I2DComponent.onPlay

Defined in

framework/2d/component/boxcollider2d.ts:83


remove

remove(): void

Returns

void

Implementation of

I2DComponent.remove

Defined in

framework/2d/component/boxcollider2d.ts:92


start

start(): void

Returns

void

Implementation of

I2DComponent.start

Defined in

framework/2d/component/boxcollider2d.ts:80


update

update(delta): void

Parameters

Name
Type

delta

number

Returns

void

Implementation of

I2DComponent.update

Defined in

framework/2d/component/boxcollider2d.ts:86

Properties

transform

transform: transform2D

Implementation of

ICollider2d.transform

Defined in

framework/2d/component/boxcollider2d.ts:18


ClassName

Static Readonly ClassName: string = "boxcollider2d"

Defined in

framework/2d/component/boxcollider2d.ts:16

Last updated