大约有 27 项符合查询结果, 库内数据总量为 30,964 项。 (搜索耗时: 0.0034 秒)
...。 那category与mask如何识别是否碰撞的呢? 是通过二进制位运算,来进行识别的。 mask值和category值,`按位与`的计算结果非0,就可以碰撞;为0,就不可以碰撞。 例如,mask设置为3(2进制是11),category设置为2(2进制是10), 进行...
来源: Laya2.0_文档 发布时间: 20210715
...physicsCannon/CannonPhysicsComponent.ts:296 可碰撞的碰撞组,基于位运算。 Returns number Defined in laya/d3/physicsCannon/CannonPhysicsComponent.ts:300 可碰撞的碰撞组,基于位运算。 Parameters value: number Returns void colliderShape get colliderShape(): CannonColliderShape set...
来源: Laya3.0_api 发布时间: 20231102
...physicsCannon/CannonPhysicsComponent.ts:296 可碰撞的碰撞组,基于位运算。 Returns number Inherited from CannonPhysicsTriggerComponent.canCollideWith Defined in laya/d3/physicsCannon/CannonPhysicsComponent.ts:300 可碰撞的碰撞组,基于位运算。 Parameters value: number Returns voi...
来源: Laya3.0_api 发布时间: 20231102
...physicsCannon/CannonPhysicsComponent.ts:296 可碰撞的碰撞组,基于位运算。 Returns number Inherited from CannonPhysicsTriggerComponent.canCollideWith Defined in laya/d3/physicsCannon/CannonPhysicsComponent.ts:300 可碰撞的碰撞组,基于位运算。 Parameters value: number Returns voi...
来源: Laya3.0_api 发布时间: 20231102
... 原因分析: 应该是颜色选择控件保存颜色值时使用了位运算导致溢出,数值被解析为负值. 目前临时解决方案为将颜色选择器输出的值使用`>>>0`修正, 但编辑器内部多处存在该问题无法更改, 使用依旧多有不便, 希望官...
来源: Laya_社区 发布时间: 20250228
...用以实现碰撞过滤。 关于如何设置mask的值,需要用到位运算的知识,可以通过**按位或**运算和**异或**运算得到指定的值。 通常,我们采用按位或的运算比较多,例如,想与刚体category属性值分别为1、2、8、4的四个物体对象发...
来源: Laya2.0_文档 发布时间: 20210714
... in laya/d3/physics/PhysicsComponent.ts:341 可碰撞的碰撞组,基于位运算。 Returns number Defined in laya/d3/physics/PhysicsComponent.ts:345 可碰撞的碰撞组,基于位运算。 Parameters value: number Returns void ccdMotionThreshold get ccdMotionThreshold(): number set ccdMotionThres...
来源: Laya3.0_api 发布时间: 20231115
... in laya/d3/physics/PhysicsComponent.ts:341 可碰撞的碰撞组,基于位运算。 Returns number Inherited from PhysicsTriggerComponent.canCollideWith Defined in laya/d3/physics/PhysicsComponent.ts:345 可碰撞的碰撞组,基于位运算。 Parameters value: number Returns void ccdMotionThresho...
来源: Laya3.0_api 发布时间: 20231115
... in laya/d3/physics/PhysicsComponent.ts:341 可碰撞的碰撞组,基于位运算。 Returns number Inherited from PhysicsTriggerComponent.canCollideWith Defined in laya/d3/physics/PhysicsComponent.ts:345 可碰撞的碰撞组,基于位运算。 Parameters value: number Returns void ccdMotionThresho...
来源: Laya3.0_api 发布时间: 20231115
...有的优势。 例如,TypedArray 性能更高,适用于大规模数值运算,并且提供了类似普通数组的方法(如 map、forEach、set),让开发者可以像操作普通数组一样操作二进制数据,等。 什么时候使用 TypedArray? 处理大规模数值计算(如...
来源: Laya3.0_文档 发布时间: 20250314