大约有 965 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0044 秒)
Laya_社区(486) Laya3.0_api(135) Laya2.0_文档(121) laya_api(88) Laya2.0_api(75) Laya_示例(42) Laya3.0_文档(18)
...碰撞总是会穿墙,求解决方法 this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.scene.physi*Simulation.rayCast(this.ray, this.outHitInfo, 1) 角色侧面进入碰撞this.outHitInfo没有碰撞信息,正面进入碰撞才有 this.capsuleCollider = new Laya....
来源: Laya_社区 发布时间: 20210306
... in laya/d3/physics/shape/HeightfieldTerrainShape.ts:11 initSize initSize: Vector3 = new Vector3() Defined in laya/d3/physics/shape/HeightfieldTerrainShape.ts:12 needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CompoundColliderShape.needsCustomCollisionCallba...
来源: Laya3.0_api 发布时间: 20231115
...d:Laya.Scene3D; sp:Laya.Sprite3D; sp2:Laya.Sprite3D; translateA = new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照...
来源: Laya_社区 发布时间: 20190618
... out 相交点 */ static intersectsRayAndPlaneRP(ray:Ray, plane:Plane, out:Vector3):boolean { var distance:number; if (!CollisionUtils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ra...
来源: Laya_社区 发布时间: 20191012
...dChild(new Laya.Camera(0, 0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat....
来源: Laya_示例 发布时间: 20241124
...ape.ts:16 形状方向_Z轴正向 Accessors localOffset get localOffset(): Vector3 set localOffset(value: Vector3): void Inherited from CannonColliderShape.localOffset Defined in laya/d3/physicsCannon/shape/CannonColliderShape.ts:119 Shape的本地偏移。 Returns Vector3 Inherited from CannonColli...
来源: Laya3.0_api 发布时间: 20231102
...laya/components/Component.ts:86 Returns boolean boundsMax get boundsMax(): Vector3 set boundsMax(value: Vector3): void Inherited from VolumetricGI.boundsMax Defined in laya/d3/component/Volume/Volume.ts:69 primitive包围盒max Returns Vector3 Inherited from VolumetricGI.boundsMax Defined in laya/d3...
来源: Laya3.0_api 发布时间: 20231115
... Laya.VRCamera( 0.03,0, 0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0.3, 0.3, 0.6)); camera.transform.rotate(new Laya.Vector3(-12, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(VRCameraMoveScript); /* var camera = (scene.addChild(new Laya.C...
来源: Laya_社区 发布时间: 20170707
...addChild(shelf0); shelf0.transform.translate(new Laya.Vector3(-4,1.2,35)); var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf.lh"); this.scene.addChild(shelf3); shelf3.transform.translate(new Laya.Vector3(0,1.2,35)); ...
来源: Laya_社区 发布时间: 20180301
...ider.mesh = field.meshFilter.sharedMesh; 检测碰撞: var rayOrigin: Laya.Vector3 = new Laya.Vector3(0, 0, 0); //射线原点 //根据角色位置计算射线原点 Laya.Vector3.add(this.ownerSprite.transform.position, new Laya.Vector3(speedX, 1, speedZ), rayOrigin); //射线原点位置更新 this...
来源: Laya_社区 发布时间: 20180316