大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0016 秒)
....HitResult = new Laya.HitResult(); var hitResults = []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults); //遍历射线检测的结果 for (i = 0, n = this.hitResults.length; i (图...
来源: Laya2.0_文档 发布时间: 20210715
...ory=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)); ```typescript this.hitResult = new Laya.HitResult(); this.hitResults= []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults...
来源: Laya2.0_文档 发布时间: 20210715
...yFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv.fnt", new Laya.Handler(this, th...
来源: Laya2.0_文档 发布时间: 20210715