# Class PhysicsUtil

为了方便使用，将编辑器中的物理分组定义到代码。如果编辑器中有修改，确保同步到这里。

#### Hierarchy

- PhysicsUtil

- Defined in assets/core/utils/PhysicsUtil.ts:42

#####
Index

### Constructors

constructor

### Properties

DEFAULT
GAME_OBJECT_SELECT
GAME_OWNER

### Methods

setNodeLayer

## Constructors

### constructor

- new PhysicsUtil(): PhysicsUtil

- #### Returns PhysicsUtil

## Properties

### `Static` DEFAULT

DEFAULT: GroupItem = ...

默认物理分组

- Defined in assets/core/utils/PhysicsUtil.ts:44

### `Static` GAME_OBJECT_SELECT

GAME_OBJECT_SELECT: GroupItem = ...

能通过屏幕触摸中发出的射线检查到的游戏对象

- Defined in assets/core/utils/PhysicsUtil.ts:46

### `Static` GAME_OWNER

GAME_OWNER: GroupItem = ...

玩家自己

- Defined in assets/core/utils/PhysicsUtil.ts:48

## Methods

### `Static` setNodeLayer

- setNodeLayer(item: GroupItem, node: Node): void

- #### Parameters

  - ##### item: GroupItem

  - ##### node: Node

  #### Returns void

  - Defined in assets/core/utils/PhysicsUtil.ts:50

Generated using TypeDoc