@series-inc/rundot-3d-engine 0.5.13 → 0.5.15
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.
- package/dist/{chunk-ETKDCGQV.js → chunk-JD4M2BHR.js} +24 -44
- package/dist/chunk-JD4M2BHR.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/systems/index.d.ts +24 -2
- package/dist/systems/index.js +284 -238
- package/dist/systems/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-ETKDCGQV.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/systems/index.d.ts
CHANGED
|
@@ -184,7 +184,7 @@ declare class PhysicsSystem {
|
|
|
184
184
|
/**
|
|
185
185
|
* Sync Three.js object position with physics body
|
|
186
186
|
*/
|
|
187
|
-
static syncObjectToPhysics(object: THREE.Object3D, rigidBody: RigidBody): void;
|
|
187
|
+
static syncObjectToPhysics(object: THREE.Object3D, rigidBody: RigidBody, collider?: Collider): void;
|
|
188
188
|
/**
|
|
189
189
|
* Sync physics body position to Three.js object
|
|
190
190
|
*/
|
|
@@ -274,6 +274,28 @@ declare class BoxColliderComponent extends Component {
|
|
|
274
274
|
getRigidBody(): RigidBodyComponentThree | null;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
+
interface SphereComponentJSON extends ComponentJSON {
|
|
278
|
+
type: "sphere";
|
|
279
|
+
isCollider?: boolean;
|
|
280
|
+
radius: number;
|
|
281
|
+
offset: number[];
|
|
282
|
+
bodyType?: "static" | "kinematic" | "dynamic";
|
|
283
|
+
isSensor?: boolean;
|
|
284
|
+
enableCollisionEvents?: boolean;
|
|
285
|
+
}
|
|
286
|
+
declare class SphereColliderComponent extends Component {
|
|
287
|
+
static fromPrefabJSON(json: SphereComponentJSON, _node: PrefabNode): SphereColliderComponent | null;
|
|
288
|
+
private rigidBody;
|
|
289
|
+
private readonly radius;
|
|
290
|
+
private readonly offset;
|
|
291
|
+
private readonly bodyType;
|
|
292
|
+
private readonly isSensor?;
|
|
293
|
+
private readonly enableCollisionEvents?;
|
|
294
|
+
constructor(radius: number, offset: THREE.Vector3, bodyType?: RigidBodyType, isSensor?: boolean, enableCollisionEvents?: boolean);
|
|
295
|
+
protected onCreate(): void;
|
|
296
|
+
getRigidBody(): RigidBodyComponentThree | null;
|
|
297
|
+
}
|
|
298
|
+
|
|
277
299
|
type MeshColliderType = "bounding_box" | "convex_hull";
|
|
278
300
|
interface MeshColliderJSON extends ComponentJSON {
|
|
279
301
|
type: "mesh_collider";
|
|
@@ -3387,4 +3409,4 @@ declare class StowKitSystem {
|
|
|
3387
3409
|
dispose(): void;
|
|
3388
3410
|
}
|
|
3389
3411
|
|
|
3390
|
-
export { type AABB, type ActiveTransition, AmbientLightComponent, AnimationConsoleFilter, AnimationControllerComponent, AnimationCullingManager, type AnimationCurve, AnimationEvent, AnimationGraphComponent, AnimationLibrary, AnimationLibraryComponent, AnimationPerformance, AnimationVisualizerComponent, Animatrix, AnimatrixVisualizer, Audio2D, type AudioBank2D, type AudioBank3D, type AudioClip2DConfig, type AudioClip3DConfig, AudioSystem, type AudioSystemInstance, type BlendTreeConfig, BlendType, BoxColliderComponent, type BurstConfig, CharacterAnimationController, type ClipInfo, ComparisonOperator, ComponentJSON, CrossfadeToMusic, type CurveKeyframe, CurvePresets, type CurveableValue, DEFAULT_KEY_BINDINGS, DebugPanelThree, DirectionalLightComponent, DynamicNavSystem, Easing, type EmissionConfig, type EmitterAssets, type EmitterConfig, EmitterShape, type EmitterShapeKey, type FlipConfig, type Footprint, GetMasterVolume, GetMusicSystemState, Input, InputAction, InputManager, IsAudioMuted, IsMusicReady, Main2DAudioBank, Main3DAudioBank, MaterialUtils, MathUtil, MeshColliderComponent, MusicBank, type MusicBankType, MusicSystem, type MusicSystemState, NavAgent, NavigationGrid, type NoiseConfig, type NumRange, type Parameter, ParameterType, Particle, type ParticleSystem, ParticleSystemPrefabComponent, PathVisualizationThree, type PathfindingResult, PauseMusic, PhysicsSystem, PlayAudioOneShot2D, PlayAudioOneShot3D, PlayAudioRandom2D, PlayMusic, PopulateAudioBank2D, PopulateAudioBank3D, PopulateMusicBank, Prefab, PrefabCollection, PrefabCollectionJSON, PrefabComponent, PrefabComponentConstructor, PrefabInstance, type PrefabInstantiateOptions, PrefabJSON, PrefabLoader, PrefabNode, RandomAudio2D, type RenderMode, RenderingDebugger, ResumeMusic, RigidBodyComponentThree, RigidBodyType, SecondOrderDynamics, SecondOrderDynamics1D, SetAudioMuted, SetMasterVolume, SetMusicVolume, SharedAnimationManager, type SplineConfigThree, type SplineDebugConfig, SplineDebugManager, type SplineDebugOptionsThree, SplineDebugRendererThree, type SplinePointThree, type SplineSegmentThree, SplineThree, SplineTypeThree, StartMusicWithAutoplayHandling, StartPlaylist, StartPlaylistWithAutoplayHandling, StopMusic, StopPlaylist, type StowKitLoadConfig, StowKitSystem, ToggleMusic, type TransitionCondition, type TransitionConfig$1 as TransitionConfig, Tween, TweenSystem, type UIElement, UILoadingScreen, type UIProgressBar, UISystem, UIUtils, type UIWorldElement, type Waypoint, addKeyframe, cloneCurve, createCurveFromPoints, createKeyframe, createParticleEmitter, evaluateCurve, evaluateCurveableValue, range, removeKeyframe, updateKeyframe };
|
|
3412
|
+
export { type AABB, type ActiveTransition, AmbientLightComponent, AnimationConsoleFilter, AnimationControllerComponent, AnimationCullingManager, type AnimationCurve, AnimationEvent, AnimationGraphComponent, AnimationLibrary, AnimationLibraryComponent, AnimationPerformance, AnimationVisualizerComponent, Animatrix, AnimatrixVisualizer, Audio2D, type AudioBank2D, type AudioBank3D, type AudioClip2DConfig, type AudioClip3DConfig, AudioSystem, type AudioSystemInstance, type BlendTreeConfig, BlendType, BoxColliderComponent, type BurstConfig, CharacterAnimationController, type ClipInfo, ComparisonOperator, ComponentJSON, CrossfadeToMusic, type CurveKeyframe, CurvePresets, type CurveableValue, DEFAULT_KEY_BINDINGS, DebugPanelThree, DirectionalLightComponent, DynamicNavSystem, Easing, type EmissionConfig, type EmitterAssets, type EmitterConfig, EmitterShape, type EmitterShapeKey, type FlipConfig, type Footprint, GetMasterVolume, GetMusicSystemState, Input, InputAction, InputManager, IsAudioMuted, IsMusicReady, Main2DAudioBank, Main3DAudioBank, MaterialUtils, MathUtil, MeshColliderComponent, MusicBank, type MusicBankType, MusicSystem, type MusicSystemState, NavAgent, NavigationGrid, type NoiseConfig, type NumRange, type Parameter, ParameterType, Particle, type ParticleSystem, ParticleSystemPrefabComponent, PathVisualizationThree, type PathfindingResult, PauseMusic, PhysicsSystem, PlayAudioOneShot2D, PlayAudioOneShot3D, PlayAudioRandom2D, PlayMusic, PopulateAudioBank2D, PopulateAudioBank3D, PopulateMusicBank, Prefab, PrefabCollection, PrefabCollectionJSON, PrefabComponent, PrefabComponentConstructor, PrefabInstance, type PrefabInstantiateOptions, PrefabJSON, PrefabLoader, PrefabNode, RandomAudio2D, type RenderMode, RenderingDebugger, ResumeMusic, RigidBodyComponentThree, RigidBodyType, SecondOrderDynamics, SecondOrderDynamics1D, SetAudioMuted, SetMasterVolume, SetMusicVolume, SharedAnimationManager, SphereColliderComponent, type SplineConfigThree, type SplineDebugConfig, SplineDebugManager, type SplineDebugOptionsThree, SplineDebugRendererThree, type SplinePointThree, type SplineSegmentThree, SplineThree, SplineTypeThree, StartMusicWithAutoplayHandling, StartPlaylist, StartPlaylistWithAutoplayHandling, StopMusic, StopPlaylist, type StowKitLoadConfig, StowKitSystem, ToggleMusic, type TransitionCondition, type TransitionConfig$1 as TransitionConfig, Tween, TweenSystem, type UIElement, UILoadingScreen, type UIProgressBar, UISystem, UIUtils, type UIWorldElement, type Waypoint, addKeyframe, cloneCurve, createCurveFromPoints, createKeyframe, createParticleEmitter, evaluateCurve, evaluateCurveableValue, range, removeKeyframe, updateKeyframe };
|