大约有 84 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...动速度小于该值时不进行CCD检测,防止快速移动物体(例如:子弹)错误的穿过其它物体,0表示禁止。 PhysicsComponent ccdSweptSphereRadius : Number 取用于进入连续碰撞检测(CCD)范围的球半径。 PhysicsComponent colliderShape : ColliderShape 获取碰撞形...
来源: Laya2.0_api 发布时间: 20190513
...te = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (this._level > 1) { this._level--; this._text.text = (this._level + ""); owner.getComponent(Laya.RigidBody).setVelocity({ x: 0, y: -10 }); Laya.SoundManager.playSound("resou...
来源: Laya3.0_文档 发布时间: 20251010
...果是独立小模块,功能单一,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private sMapRes = "remote/model/res/Conventional/map1.ls" private sBullRes = ...
来源: Laya_社区 发布时间: 20200720
...果是独立小模块,功能单一,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private newScene:Laya.Scene3D; private boxA: Laya.MeshSprite3D; constructor() { super(); Laya3D.init(0, 0);...
来源: Laya_社区 发布时间: 20210103