@hology/core 0.0.168 → 0.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { MeshComponent } from './mesh-component.js';
|
|
2
|
+
import { CharacterMovementComponent } from './character/character-movement.js';
|
|
3
|
+
import { CharacterAnimationComponent } from './character/character-animation.js';
|
|
2
4
|
import { TweenComponent } from './tween-component.js';
|
|
5
|
+
import { TriggerVolumeComponent } from '../trigger-volume.js';
|
|
6
|
+
import { PositionalAudioComponent } from '../positional-audio-actor.js';
|
|
7
|
+
import { CameraComponent, ThirdPersonCameraComponent } from '../../../../gameplay/actors/index.js';
|
|
3
8
|
export declare const builtInComponents: {
|
|
4
9
|
MeshComponent: typeof MeshComponent;
|
|
5
10
|
TweenComponent: typeof TweenComponent;
|
|
11
|
+
CharacterMovementComponent: typeof CharacterMovementComponent;
|
|
12
|
+
CharacterAnimationComponent: typeof CharacterAnimationComponent;
|
|
13
|
+
TriggerVolumeComponent: typeof TriggerVolumeComponent;
|
|
14
|
+
PositionalAudioComponent: typeof PositionalAudioComponent;
|
|
15
|
+
CameraComponent: typeof CameraComponent;
|
|
16
|
+
ThirdPersonCameraComponent: typeof ThirdPersonCameraComponent;
|
|
6
17
|
};
|
|
7
18
|
export default builtInComponents;
|
|
8
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{MeshComponent as o}from"./mesh-component.js";import{TweenComponent as n}from"./tween-component.js";export const builtInComponents={MeshComponent:o,TweenComponent:n};export default builtInComponents;/*
|
|
1
|
+
import{MeshComponent as o}from"./mesh-component.js";import{CharacterMovementComponent as t}from"./character/character-movement.js";import{CharacterAnimationComponent as e}from"./character/character-animation.js";import{TweenComponent as n}from"./tween-component.js";import{TriggerVolumeComponent as r}from"../trigger-volume.js";import{PositionalAudioComponent as m}from"../positional-audio-actor.js";import{CameraComponent as a,ThirdPersonCameraComponent as i}from"../../../../gameplay/actors/index.js";export const builtInComponents={MeshComponent:o,TweenComponent:n,CharacterMovementComponent:t,CharacterAnimationComponent:e,TriggerVolumeComponent:r,PositionalAudioComponent:m,CameraComponent:a,ThirdPersonCameraComponent:i};export default builtInComponents;/*
|
|
2
2
|
* Copyright (©) 2025 Hology Interactive AB. All rights reserved.
|
|
3
3
|
* See the LICENSE.md file for details.
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as t,__metadata as s}from"tslib";import{EdgesGeometry as i,LineSegments as e,LineBasicMaterial as o,Vector3 as r,BoxGeometry as n,Mesh as h,MeshBasicMaterial as c,Group as p,Color as m}from"three";import{Actor as
|
|
1
|
+
import{__decorate as t,__metadata as s}from"tslib";import{EdgesGeometry as i,LineSegments as e,LineBasicMaterial as o,Vector3 as r,BoxGeometry as n,Mesh as h,MeshBasicMaterial as c,Group as p,Color as m}from"three";import{Actor as d,BaseActor as a}from"../actor.js";import{Component as y,ActorComponent as l,attach as f}from"../component.js";import{PhysicsSystem as v}from"../../services/physics/physics-system.js";import{BoxCollisionShape as w}from"../../../scene/collision/collision-shape.js";import{Parameter as g}from"../../../shader/parameter.js";import{firstValueFrom as O}from"rxjs";let u=class extends l{constructor(){super(...arguments),this.color=new m(16777215),this.dimensions=new r(1,1,1)}onInit(){const t=new n(this.dimensions.x,this.dimensions.y,this.dimensions.z),s=new i(t),r=new e(s,new o({color:this.color})),m=(new h(t,new c({color:this.color,transparent:!0,opacity:.3,visible:!1})),new p);m.add(r),this.actor.object.add(m)}};t([g(),s("design:type",m)],u.prototype,"color",void 0),t([g(),s("design:type",r)],u.prototype,"dimensions",void 0),u=t([y({inEditor:!0,editorOnly:!0})],u);export{u as TriggerVolumeMesh};let A=class extends l{constructor(t){super(),this.physicsSystem=t,this.dimensions=new r(1,1,1),this.offset=new r(0,0,0),this.editorMesh=f(u)}onInit(){this.physicsSystem.addActor(this.actor,[new w(this.dimensions).withOffset(this.offset)],{isTrigger:!0}),O(this.disposed).then(()=>{this.physicsSystem.removeActor(this.actor)})}onBeginOverlapWithActor(t){return this.physicsSystem.onBeginOverlapWithActor(this.actor,t)}onEndOverlapWithActor(t){return this.physicsSystem.onEndOverlapWithActor(this.actor,t)}onBeginOverlapWithActorType(t){return this.physicsSystem.onBeginOverlapWithActorType(this.actor,t)}onEndOverlapWithActorType(t){return this.physicsSystem.onEndOverlapWithActorType(this.actor,t)}};A=t([y({inEditor:!0,editorOnly:!1}),s("design:paramtypes",[v])],A);export{A as TriggerVolumeComponent};let x=class extends a{constructor(){super(...arguments),this.trigger=f(A)}};x=t([d()],x);export{x as TriggerVolume};/*
|
|
2
2
|
* Copyright (©) 2025 Hology Interactive AB. All rights reserved.
|
|
3
3
|
* See the LICENSE.md file for details.
|
|
4
4
|
*/
|