Class: PhysicsDragger
PhysicsDragger 类用于通过鼠标操作拖拽3D物体。 利用物理引擎中的射线检测与刚体交互,实现物体的实时拖拽效果。
Constructors
Properties
Accessors
Constructors
constructor
• new PhysicsDragger(): PhysicsDragger
Returns
Defined in
packages/physics/utils/PhysicsDragger.ts:54
Properties
filterStatic
• filterStatic: boolean
= true
是否过滤静态刚体对象,默认值为 true
Defined in
packages/physics/utils/PhysicsDragger.ts:38
Accessors
enable
• get
enable(): boolean
Returns
boolean
Defined in
packages/physics/utils/PhysicsDragger.ts:22
• set
enable(value
): void
是否启用拖拽功能
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
packages/physics/utils/PhysicsDragger.ts:29
collisionFilterGroup
• set
collisionFilterGroup(value
): void
设置射线过滤组
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
packages/physics/utils/PhysicsDragger.ts:43
collisionFilterMask
• set
collisionFilterMask(value
): void
设置射线过滤掩码
Parameters
Name | Type |
---|---|
value | number |
Returns
void