diff --git a/modules/ammo/ammo-factory.ts/index.html b/modules/ammo/ammo-factory.ts/index.html index d9e03be9..099ef14a 100755 --- a/modules/ammo/ammo-factory.ts/index.html +++ b/modules/ammo/ammo-factory.ts/index.html @@ -533,6 +533,13 @@ createTrigger (method) + + +
  • + + createRaycastVehicle (method) + +
  • @@ -593,6 +600,7 @@

    Table of contents

  • AmmoFactory (class) @@ -613,11 +621,15 @@

    clone (method)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
    +
    addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
    +
    removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
    +
    +

    refreshCG (method)

    +

    Signature

    +
    refreshCG(): void
     

    resetMotion (method)

    Signature

    diff --git a/modules/ammo/components/ammo-trigger.component.ts/index.html b/modules/ammo/components/ammo-trigger.component.ts/index.html index f63c7242..f0ebf25f 100755 --- a/modules/ammo/components/ammo-trigger.component.ts/index.html +++ b/modules/ammo/components/ammo-trigger.component.ts/index.html @@ -547,6 +547,13 @@ removeFromWorld (method) +
  • + +
  • + + refreshCG (method) + +
  • @@ -623,6 +630,7 @@

    Table of contents

  • clone (method)
  • addToWorld (method)
  • removeFromWorld (method)
  • +
  • refreshCG (method)
  • dispose (method)
  • entity (property)
  • onEnter$ (property)
  • @@ -649,11 +657,15 @@

    clone (method)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>)
    +
    addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>)
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
    +
    removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
    +
    +

    refreshCG (method)

    +

    Signature

    +
    refreshCG(): void
     

    dispose (method)

    Signature

    diff --git a/modules/ammo/components/ammo-world.component.ts/index.html b/modules/ammo/components/ammo-world.component.ts/index.html index 71b2edec..5fd1b8b2 100755 --- a/modules/ammo/components/ammo-world.component.ts/index.html +++ b/modules/ammo/components/ammo-world.component.ts/index.html @@ -533,6 +533,20 @@ simulate (method) + + +
  • + + registerCollisionGroup (method) + + +
  • + +
  • + + deregisterCollisionGroup (method) + +
  • @@ -561,6 +575,13 @@ _dynamicAmmoWorld (property) +
  • + +
  • + + lockedCollisionGroups (property) + +
  • @@ -600,10 +621,13 @@

    Table of contents

  • AmmoWorldComponent (class)
  • @@ -621,16 +645,24 @@

    simulate (method)

    Signature

    simulate(delta: number): void
     
    +

    registerCollisionGroup (method)

    +

    Signature

    +
    registerCollisionGroup(): CollisionGroup
    +
    +

    deregisterCollisionGroup (method)

    +

    Signature

    +
    deregisterCollisionGroup(group: CollisionGroup): void
    +

    startDebugger (method)

    Signature

    startDebugger(
    -    world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>,
    +    world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>,
         drawer: IDebugPhysicsDrawer<Point3, Point4>,
       ): void
     

    stopDebugger (method)

    Signature

    -
    stopDebugger(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
    +
    stopDebugger(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
     

    dispose (method)

    Signature

    @@ -640,6 +672,10 @@

    _dynamicAmmoWorld (property)

    Signature

    _dynamicAmmoWorld: any
     
    +

    lockedCollisionGroups (property)

    +

    Signature

    +
    lockedCollisionGroups: number[]
    +
    diff --git a/modules/ammo/index.html b/modules/ammo/index.html index cd407d73..ec84b1d4 100755 --- a/modules/ammo/index.html +++ b/modules/ammo/index.html @@ -513,6 +513,7 @@

    Directory table of contents

  • ammo/ammo-loader.ts
  • ammo/ammo-utils.ts
  • ammo/components
  • +
  • ammo/types.ts
  • diff --git a/modules/ammo/types.ts/index.html b/modules/ammo/types.ts/index.html new file mode 100755 index 00000000..3eddf860 --- /dev/null +++ b/modules/ammo/types.ts/index.html @@ -0,0 +1,611 @@ + + + + + + + + + + + + + + + + + + + + + ammo/types.ts - GG-web-engine + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + + + + +

    types overview

    +
    +

    Table of contents

    + + +
    +

    utils

    +

    AmmoPhysicsTypeDocRepo (type alias)

    +

    Signature

    +
    export type AmmoPhysicsTypeDocRepo = {
    +  factory: AmmoFactory
    +  loader: AmmoLoader
    +  rigidBody: AmmoRigidBodyComponent
    +  trigger: AmmoTriggerComponent
    +  raycastVehicle: AmmoRaycastVehicleComponent
    +}
    +
    + + + + + + +
    +
    + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/modules/core/2d/components/physics/i-physics-world-2d.component.ts/index.html b/modules/core/2d/components/physics/i-physics-world-2d.component.ts/index.html index 56849044..1051838a 100755 --- a/modules/core/2d/components/physics/i-physics-world-2d.component.ts/index.html +++ b/modules/core/2d/components/physics/i-physics-world-2d.component.ts/index.html @@ -555,9 +555,8 @@

    Table of contents

    utils

    IPhysicsWorld2dComponent (interface)

    Signature

    -
    export interface IPhysicsWorld2dComponent extends IPhysicsWorldComponent<Point2, number> {
    -  readonly factory: IPhysicsBody2dComponentFactory
    -}
    +
    export interface IPhysicsWorld2dComponent<TypeDoc extends PhysicsTypeDocRepo2D = PhysicsTypeDocRepo2D>
    +  extends IPhysicsWorldComponent<Point2, number, TypeDoc> {}
     
    diff --git a/modules/core/2d/components/physics/i-rigid-body-2d.component.ts/index.html b/modules/core/2d/components/physics/i-rigid-body-2d.component.ts/index.html index 133cb1f1..1db45d99 100755 --- a/modules/core/2d/components/physics/i-rigid-body-2d.component.ts/index.html +++ b/modules/core/2d/components/physics/i-rigid-body-2d.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    IRigidBody2dComponent (interface)

    Signature

    -
    export interface IRigidBody2dComponent<PW extends IPhysicsWorld2dComponent = IPhysicsWorld2dComponent>
    -  extends IRigidBodyComponent<Point2, number, PW> {
    +
    export interface IRigidBody2dComponent<TypeDoc extends PhysicsTypeDocRepo2D = PhysicsTypeDocRepo2D>
    +  extends IRigidBodyComponent<Point2, number, TypeDoc> {
       angularVelocity: number
     }
     
    diff --git a/modules/core/2d/components/physics/i-trigger-2d.component.ts/index.html b/modules/core/2d/components/physics/i-trigger-2d.component.ts/index.html index d14c8030..bb852f48 100755 --- a/modules/core/2d/components/physics/i-trigger-2d.component.ts/index.html +++ b/modules/core/2d/components/physics/i-trigger-2d.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    ITrigger2dComponent (interface)

    Signature

    -
    export interface ITrigger2dComponent<PW extends IPhysicsWorld2dComponent = IPhysicsWorld2dComponent>
    -  extends ITriggerComponent<Point2, number, PW> {
    +
    export interface ITrigger2dComponent<TypeDoc extends PhysicsTypeDocRepo2D = PhysicsTypeDocRepo2D>
    +  extends ITriggerComponent<Point2, number, TypeDoc> {
     
    diff --git a/modules/core/2d/components/rendering/i-display-object-2d.component.ts/index.html b/modules/core/2d/components/rendering/i-display-object-2d.component.ts/index.html index b019a42f..35cf9791 100755 --- a/modules/core/2d/components/rendering/i-display-object-2d.component.ts/index.html +++ b/modules/core/2d/components/rendering/i-display-object-2d.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    IDisplayObject2dComponent (interface)

    Signature

    -
    export interface IDisplayObject2dComponent<VS extends IVisualScene2dComponent = IVisualScene2dComponent>
    -  extends IDisplayObjectComponent<Point2, number, VS> {}
    +
    export interface IDisplayObject2dComponent<TypeDoc extends VisualTypeDocRepo2D = VisualTypeDocRepo2D>
    +  extends IDisplayObjectComponent<Point2, number, TypeDoc> {}
     
    diff --git a/modules/core/2d/components/rendering/i-renderer-2d.component.ts/index.html b/modules/core/2d/components/rendering/i-renderer-2d.component.ts/index.html index b2a0471f..09e83210 100755 --- a/modules/core/2d/components/rendering/i-renderer-2d.component.ts/index.html +++ b/modules/core/2d/components/rendering/i-renderer-2d.component.ts/index.html @@ -555,7 +555,7 @@

    Table of contents

    utils

    IRenderer2dComponent (class)

    Signature

    -
    export declare class IRenderer2dComponent<VS>
    +
    export declare class IRenderer2dComponent<TypeDoc>
     
    diff --git a/modules/core/2d/components/rendering/i-visual-scene-2d.component.ts/index.html b/modules/core/2d/components/rendering/i-visual-scene-2d.component.ts/index.html index d72274be..ee8eb8d7 100755 --- a/modules/core/2d/components/rendering/i-visual-scene-2d.component.ts/index.html +++ b/modules/core/2d/components/rendering/i-visual-scene-2d.component.ts/index.html @@ -555,10 +555,9 @@

    Table of contents

    utils

    IVisualScene2dComponent (interface)

    Signature

    -
    export interface IVisualScene2dComponent extends IVisualSceneComponent<Point2, number> {
    -  readonly factory: IGg2dObjectFactory
    -
    -  createRenderer(canvas?: HTMLCanvasElement, rendererOptions?: Partial<RendererOptions>): IRenderer2dComponent
    +
    export interface IVisualScene2dComponent<TypeDoc extends VisualTypeDocRepo2D = VisualTypeDocRepo2D>
    +  extends IVisualSceneComponent<Point2, number, TypeDoc> {
    +  createRenderer(canvas?: HTMLCanvasElement, rendererOptions?: Partial<RendererOptions>): TypeDoc['renderer']
     }
     
    diff --git a/modules/core/2d/entities/entity-2d.ts/index.html b/modules/core/2d/entities/entity-2d.ts/index.html index 1fe8101f..2534142b 100755 --- a/modules/core/2d/entities/entity-2d.ts/index.html +++ b/modules/core/2d/entities/entity-2d.ts/index.html @@ -587,10 +587,10 @@

    Table of contents

    utils

    Entity2d (class)

    Signature

    -
    export declare class Entity2d<VS, PW> {
    +
    export declare class Entity2d<VTypeDoc, PTypeDoc> {
       constructor(
    -    public readonly object2D: IDisplayObject2dComponent | null,
    -    public readonly objectBody: IRigidBody2dComponent | null
    +    public readonly object2D: VTypeDoc['displayObject'] | null,
    +    public readonly objectBody: PTypeDoc['rigidBody'] | null
       )
     }
     
    @@ -601,7 +601,7 @@

    updateVisibility (method)

    runTransformBinding (method)

    Synchronize physics body transform with entity (and object2d if defined)

    Signature

    -
    protected runTransformBinding(objectBody: IRigidBody2dComponent, object2D: IDisplayObject2dComponent | null): void
    +
    protected runTransformBinding(objectBody: PTypeDoc['rigidBody'], object2D: VTypeDoc['displayObject'] | null): void
     

    tickOrder (property)

    Signature

    diff --git a/modules/core/2d/entities/i-renderable-2d.entity.ts/index.html b/modules/core/2d/entities/i-renderable-2d.entity.ts/index.html index 5017ffd5..b0cbc0f4 100755 --- a/modules/core/2d/entities/i-renderable-2d.entity.ts/index.html +++ b/modules/core/2d/entities/i-renderable-2d.entity.ts/index.html @@ -555,7 +555,7 @@

    Table of contents

    utils

    IRenderable2dEntity (class)

    Signature

    -
    export declare class IRenderable2dEntity<VS, PW>
    +
    export declare class IRenderable2dEntity<TypeDoc, PTypeDoc>
     
    diff --git a/modules/core/2d/entities/renderer-2d.entity.ts/index.html b/modules/core/2d/entities/renderer-2d.entity.ts/index.html index cf5d37d7..0da81c3d 100755 --- a/modules/core/2d/entities/renderer-2d.entity.ts/index.html +++ b/modules/core/2d/entities/renderer-2d.entity.ts/index.html @@ -555,7 +555,7 @@

    Table of contents

    utils

    Renderer2dEntity (class)

    Signature

    -
    export declare class Renderer2dEntity<RC>
    +
    export declare class Renderer2dEntity<TypeDoc>
     
    diff --git a/modules/core/2d/entities/trigger-2d.entity.ts/index.html b/modules/core/2d/entities/trigger-2d.entity.ts/index.html index aedeed43..548ba474 100755 --- a/modules/core/2d/entities/trigger-2d.entity.ts/index.html +++ b/modules/core/2d/entities/trigger-2d.entity.ts/index.html @@ -571,7 +571,7 @@

    Table of contents

    utils

    Trigger2dEntity (class)

    Signature

    -
    export declare class Trigger2dEntity {
    +
    export declare class Trigger2dEntity<TypeDoc> {
       constructor(public readonly objectBody: ITrigger2dComponent)
     }
     
    diff --git a/modules/core/2d/factories.ts/index.html b/modules/core/2d/factories.ts/index.html index f247f190..2ffc8d12 100755 --- a/modules/core/2d/factories.ts/index.html +++ b/modules/core/2d/factories.ts/index.html @@ -514,11 +514,18 @@
    • - - IGg2dObjectFactory (class) + + DisplayObject2dOpts (type alias) -
    • + +
    • + + IDisplayObject2dComponentFactory (class) + + + +
    • + +
    • + + PhysicsTypeDocRepo2D (type alias) + + +
    • + +
    • + + VisualTypeDocRepo2D (type alias) + +
    @@ -574,22 +588,46 @@

    Table of contents

  • addRenderer (method)
  • +
  • PhysicsTypeDocRepo2D (type alias)
  • +
  • VisualTypeDocRepo2D (type alias)

  • utils

    Gg2dWorld (class)

    Signature

    -
    export declare class Gg2dWorld<V, P> {
    -  constructor(public readonly visualScene: V, public readonly physicsWorld: P)
    +
    export declare class Gg2dWorld<VTypeDoc, PTypeDoc, VS, PW> {
    +  constructor(public readonly visualScene: VS, public readonly physicsWorld: PW)
     }
     

    addPrimitiveRigidBody (method)

    Signature

    -
    addPrimitiveRigidBody(descr: BodyShape2DDescriptor, position: Point2 = Pnt2.O, rotation: number = 0): Entity2d<V, P>
    +
    addPrimitiveRigidBody(
    +    descr: BodyShape2DDescriptor,
    +    position: Point2 = Pnt2.O,
    +    rotation: number = 0,
    +    material: DisplayObject2dOpts<VTypeDoc['texture']> = {},
    +  ): Entity2d<VTypeDoc, PTypeDoc>
     

    addRenderer (method)

    Signature

    -
    addRenderer(canvas?: HTMLCanvasElement, rendererOptions?: Partial<RendererOptions>): Renderer2dEntity
    +
    addRenderer(canvas?: HTMLCanvasElement, rendererOptions?: Partial<RendererOptions>): Renderer2dEntity<VTypeDoc>
    +
    +

    PhysicsTypeDocRepo2D (type alias)

    +

    Signature

    +
    export type PhysicsTypeDocRepo2D = {
    +  factory: IPhysicsBody2dComponentFactory
    +  rigidBody: IRigidBody2dComponent
    +  trigger: ITrigger2dComponent
    +}
    +
    +

    VisualTypeDocRepo2D (type alias)

    +

    Signature

    +
    export type VisualTypeDocRepo2D = {
    +  factory: IDisplayObject2dComponentFactory
    +  displayObject: IDisplayObject2dComponent
    +  renderer: IRenderer2dComponent
    +  texture: unknown
    +}
     
    diff --git a/modules/core/3d/components/physics/i-physics-world-3d.component.ts/index.html b/modules/core/3d/components/physics/i-physics-world-3d.component.ts/index.html index 19751a02..7c559fc3 100755 --- a/modules/core/3d/components/physics/i-physics-world-3d.component.ts/index.html +++ b/modules/core/3d/components/physics/i-physics-world-3d.component.ts/index.html @@ -555,9 +555,9 @@

    Table of contents

    utils

    IPhysicsWorld3dComponent (interface)

    Signature

    -
    export interface IPhysicsWorld3dComponent extends IPhysicsWorldComponent<Point3, Point4> {
    -  readonly factory: IPhysicsBody3dComponentFactory
    -  readonly loader: IPhysicsBody3dComponentLoader
    +
    export interface IPhysicsWorld3dComponent<TypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D>
    +  extends IPhysicsWorldComponent<Point3, Point4, TypeDoc> {
    +  readonly loader: TypeDoc['loader']
     }
     
    diff --git a/modules/core/3d/components/physics/i-raycast-vehicle.component.ts/index.html b/modules/core/3d/components/physics/i-raycast-vehicle.component.ts/index.html index ce919cd1..84609655 100755 --- a/modules/core/3d/components/physics/i-raycast-vehicle.component.ts/index.html +++ b/modules/core/3d/components/physics/i-raycast-vehicle.component.ts/index.html @@ -571,8 +571,8 @@

    Table of contents

    utils

    IRaycastVehicleComponent (interface)

    Signature

    -
    export interface IRaycastVehicleComponent<PW extends IPhysicsWorld3dComponent = IPhysicsWorld3dComponent>
    -  extends IRigidBody3dComponent<PW> {
    +
    export interface IRaycastVehicleComponent<TypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D>
    +  extends IRigidBody3dComponent<TypeDoc> {
     

    SuspensionOptions (type alias)

    Signature

    diff --git a/modules/core/3d/components/physics/i-rigid-body-3d.component.ts/index.html b/modules/core/3d/components/physics/i-rigid-body-3d.component.ts/index.html index adae7812..54ea1494 100755 --- a/modules/core/3d/components/physics/i-rigid-body-3d.component.ts/index.html +++ b/modules/core/3d/components/physics/i-rigid-body-3d.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    IRigidBody3dComponent (interface)

    Signature

    -
    export interface IRigidBody3dComponent<PW extends IPhysicsWorld3dComponent = IPhysicsWorld3dComponent>
    -  extends IRigidBodyComponent<Point3, Point4, PW> {
    +
    export interface IRigidBody3dComponent<TypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D>
    +  extends IRigidBodyComponent<Point3, Point4, TypeDoc> {
       angularVelocity: Point3
     }
     
    diff --git a/modules/core/3d/components/physics/i-trigger-3d.component.ts/index.html b/modules/core/3d/components/physics/i-trigger-3d.component.ts/index.html index cc4bae5f..67e4e5e1 100755 --- a/modules/core/3d/components/physics/i-trigger-3d.component.ts/index.html +++ b/modules/core/3d/components/physics/i-trigger-3d.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    ITrigger3dComponent (interface)

    Signature

    -
    export interface ITrigger3dComponent<PW extends IPhysicsWorld3dComponent = IPhysicsWorld3dComponent>
    -  extends ITriggerComponent<Point3, Point4, PW> {
    +
    export interface ITrigger3dComponent<TypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D>
    +  extends ITriggerComponent<Point3, Point4, TypeDoc> {
     
    diff --git a/modules/core/3d/components/rendering/i-camera.component.ts/index.html b/modules/core/3d/components/rendering/i-camera.component.ts/index.html index 3868a872..85d89dc9 100755 --- a/modules/core/3d/components/rendering/i-camera.component.ts/index.html +++ b/modules/core/3d/components/rendering/i-camera.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    ICameraComponent (interface)

    Signature

    -
    export interface ICameraComponent<VS extends IVisualScene3dComponent = IVisualScene3dComponent>
    -  extends IDisplayObject3dComponent<VS> {
    +
    export interface ICameraComponent<TypeDoc extends VisualTypeDocRepo3D = VisualTypeDocRepo3D>
    +  extends IDisplayObject3dComponent<TypeDoc> {
     
    diff --git a/modules/core/3d/components/rendering/i-display-object-3d.component.ts/index.html b/modules/core/3d/components/rendering/i-display-object-3d.component.ts/index.html index bcfc2ac3..638dae2a 100755 --- a/modules/core/3d/components/rendering/i-display-object-3d.component.ts/index.html +++ b/modules/core/3d/components/rendering/i-display-object-3d.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    IDisplayObject3dComponent (interface)

    Signature

    -
    export interface IDisplayObject3dComponent<VS extends IVisualScene3dComponent = IVisualScene3dComponent>
    -  extends IDisplayObjectComponent<Point3, Point4, VS> {}
    +
    export interface IDisplayObject3dComponent<TypeDoc extends VisualTypeDocRepo3D = VisualTypeDocRepo3D>
    +  extends IDisplayObjectComponent<Point3, Point4, TypeDoc> {}
     
    diff --git a/modules/core/3d/components/rendering/i-renderer-3d.component.ts/index.html b/modules/core/3d/components/rendering/i-renderer-3d.component.ts/index.html index e579ebce..b899a33d 100755 --- a/modules/core/3d/components/rendering/i-renderer-3d.component.ts/index.html +++ b/modules/core/3d/components/rendering/i-renderer-3d.component.ts/index.html @@ -571,11 +571,11 @@

    Table of contents

    utils

    IRenderer3dComponent (class)

    Signature

    -
    export declare class IRenderer3dComponent<VS, CC>
    +
    export declare class IRenderer3dComponent<TypeDoc>
     

    camera (property)

    Signature

    -
    camera: CC
    +
    camera: TypeDoc['camera']
     
    diff --git a/modules/core/3d/components/rendering/i-visual-scene-3d.component.ts/index.html b/modules/core/3d/components/rendering/i-visual-scene-3d.component.ts/index.html index 1a1d2e0e..7df5ee7e 100755 --- a/modules/core/3d/components/rendering/i-visual-scene-3d.component.ts/index.html +++ b/modules/core/3d/components/rendering/i-visual-scene-3d.component.ts/index.html @@ -555,15 +555,15 @@

    Table of contents

    utils

    IVisualScene3dComponent (interface)

    Signature

    -
    export interface IVisualScene3dComponent extends IVisualSceneComponent<Point3, Point4> {
    -  readonly factory: IDisplayObject3dComponentFactory
    -  readonly loader: IDisplayObject3dComponentLoader
    +
    export interface IVisualScene3dComponent<TypeDoc extends VisualTypeDocRepo3D = VisualTypeDocRepo3D>
    +  extends IVisualSceneComponent<Point3, Point4, TypeDoc> {
    +  readonly loader: TypeDoc['loader']
     
       createRenderer(
    -    camera: ICameraComponent,
    +    camera: TypeDoc['camera'],
         canvas?: HTMLCanvasElement,
         rendererOptions?: Partial<RendererOptions>
    -  ): IRenderer3dComponent
    +  ): TypeDoc['renderer']
     }
     
    diff --git a/modules/core/3d/entities/controllers/animators/camera-3d.animator.ts/index.html b/modules/core/3d/entities/controllers/animators/camera-3d.animator.ts/index.html index 2ef97e8a..b85d2730 100755 --- a/modules/core/3d/entities/controllers/animators/camera-3d.animator.ts/index.html +++ b/modules/core/3d/entities/controllers/animators/camera-3d.animator.ts/index.html @@ -596,13 +596,16 @@

    Camera3dAnimationArgs (type alias)

    Camera3dAnimator (class)

    Signature

    -
    export declare class Camera3dAnimator {
    -  constructor(public entity: Renderer3dEntity, protected _animationFunction: AnimationFunction<Camera3dAnimationArgs>)
    +
    export declare class Camera3dAnimator<VTypeDoc> {
    +  constructor(
    +    public entity: Renderer3dEntity<VTypeDoc>,
    +    protected _animationFunction: AnimationFunction<Camera3dAnimationArgs>
    +  )
     }
     

    onSpawned (method)

    Signature

    -
    onSpawned(world: Gg3dWorld)
    +
    onSpawned(world: Gg3dWorld<VTypeDoc>)
     

    applyPositioning (method)

    Signature

    diff --git a/modules/core/3d/entities/entity-3d.ts/index.html b/modules/core/3d/entities/entity-3d.ts/index.html index 34963df9..f2ddbcbe 100755 --- a/modules/core/3d/entities/entity-3d.ts/index.html +++ b/modules/core/3d/entities/entity-3d.ts/index.html @@ -587,10 +587,10 @@

    Table of contents

    utils

    Entity3d (class)

    Signature

    -
    export declare class Entity3d<VS, PW> {
    +
    export declare class Entity3d<VTypeDoc, PTypeDoc> {
       constructor(
    -    public readonly object3D: IDisplayObject3dComponent | null,
    -    public readonly objectBody: IRigidBody3dComponent | null = null
    +    public readonly object3D: VTypeDoc['displayObject'] | null,
    +    public readonly objectBody: PTypeDoc['rigidBody'] | null = null
       )
     }
     
    diff --git a/modules/core/3d/entities/gg-car/gg-car.entity.ts/index.html b/modules/core/3d/entities/gg-car/gg-car.entity.ts/index.html index e6f53d28..57f06549 100755 --- a/modules/core/3d/entities/gg-car/gg-car.entity.ts/index.html +++ b/modules/core/3d/entities/gg-car/gg-car.entity.ts/index.html @@ -533,6 +533,13 @@ setTailLightsOn (method) + + +
  • + + createRaycastVehicle (method) + +
  • @@ -642,6 +649,7 @@

    Table of contents

  • GgCarEntity (class)
    • calculateRpmFromCarSpeed (method)
    • setTailLightsOn (method)
    • +
    • createRaycastVehicle (method)
    • onSpawned (method)
    • updateEngine (method)
    • resetTo (method)
    • @@ -659,11 +667,11 @@

      Table of contents

      utils

      GgCarEntity (class)

      Signature

      -
      export declare class GgCarEntity {
      +
      export declare class GgCarEntity<VTypeDoc, PTypeDoc, RVEntity> {
         constructor(
           public readonly carProperties: GgCarProperties,
      -    chassis3D: IDisplayObject3dComponent | null,
      -    chassisBody: IRaycastVehicleComponent
      +    chassis3D: VTypeDoc['displayObject'] | null,
      +    chassisBody: PTypeDoc['raycastVehicle']
         )
       }
       
      @@ -675,9 +683,17 @@

      setTailLightsOn (method)

      Signature

      protected setTailLightsOn(value: boolean)
       
      +

      createRaycastVehicle (method)

      +

      Signature

      +
      protected createRaycastVehicle(
      +    carProperties: GgCarProperties,
      +    chassis3D: VTypeDoc['displayObject'] | null,
      +    chassisBody: PTypeDoc['raycastVehicle'],
      +  ): RVEntity
      +

      onSpawned (method)

      Signature

      -
      onSpawned(world: Gg3dWorld)
      +
      onSpawned(world: Gg3dWorld<VTypeDoc, PTypeDoc>)
       

      updateEngine (method)

      Signature

      @@ -714,7 +730,7 @@

      handBrake$ (property)

      raycastVehicle (property)

      Signature

      -
      readonly raycastVehicle: RaycastVehicle3dEntity
      +
      readonly raycastVehicle: RVEntity
       

      GgCarProperties (type alias)

      Signature

      diff --git a/modules/core/3d/entities/i-renderable-3d.entity.ts/index.html b/modules/core/3d/entities/i-renderable-3d.entity.ts/index.html index 9bcde1aa..30f9cc5a 100755 --- a/modules/core/3d/entities/i-renderable-3d.entity.ts/index.html +++ b/modules/core/3d/entities/i-renderable-3d.entity.ts/index.html @@ -555,7 +555,7 @@

      Table of contents

      utils

      IRenderable3dEntity (class)

      Signature

      -
      export declare class IRenderable3dEntity<VS, PW>
      +
      export declare class IRenderable3dEntity<TypeDoc, PTypeDoc>
       
      diff --git a/modules/core/3d/entities/map-graph-3d.entity.ts/index.html b/modules/core/3d/entities/map-graph-3d.entity.ts/index.html index 4b142f28..18ca2116 100755 --- a/modules/core/3d/entities/map-graph-3d.entity.ts/index.html +++ b/modules/core/3d/entities/map-graph-3d.entity.ts/index.html @@ -749,13 +749,13 @@

      nodes (method)

      MapGraph3dEntity (class)

      Signature

      -
      export declare class MapGraph3dEntity {
      +
      export declare class MapGraph3dEntity<VTypeDoc, PTypeDoc> {
         constructor(public readonly mapGraph: MapGraph, options: Partial<Gg3dMapGraphEntityOptions> = {})
       }
       

      onSpawned (method)

      Signature

      -
      onSpawned(world: Gg3dWorld)
      +
      onSpawned(world: Gg3dWorld<VTypeDoc, PTypeDoc>)
       

      onRemoved (method)

      Signature

      @@ -763,7 +763,9 @@

      onRemoved (method)

      loadChunk (method)

      Signature

      -
      protected async loadChunk(node: MapGraphNodeType): Promise<[Entity3d[], LoadResultWithProps]>
      +
      protected async loadChunk(
      +    node: MapGraphNodeType,
      +  ): Promise<[Entity3d<VTypeDoc, PTypeDoc>[], LoadResultWithProps<VTypeDoc, PTypeDoc>]>
       

      disposeChunk (method)

      Signature

      @@ -787,7 +789,7 @@

      _chunkLoaded$ (property)

      _world (property)

      Signature

      -
      _world: Gg3dWorld<IVisualScene3dComponent, IPhysicsWorld3dComponent> | null
      +
      _world: Gg3dWorld<VTypeDoc, PTypeDoc, IVisualScene3dComponent<VTypeDoc>, IPhysicsWorld3dComponent<PTypeDoc>> | null
       

      mapGraphNodes (property)

      Signature

      diff --git a/modules/core/3d/entities/raycast-vehicle-3d.entity.ts/index.html b/modules/core/3d/entities/raycast-vehicle-3d.entity.ts/index.html index 370b1fcf..6594a201 100755 --- a/modules/core/3d/entities/raycast-vehicle-3d.entity.ts/index.html +++ b/modules/core/3d/entities/raycast-vehicle-3d.entity.ts/index.html @@ -725,7 +725,7 @@

      RVEntitySharedWheelOptions (type

      RaycastVehicle3dEntity (class)

      Signature

      -
      export declare class RaycastVehicle3dEntity {
      +
      export declare class RaycastVehicle3dEntity<VTypeDoc, PTypeDoc> {
         constructor(
           public readonly carProperties: RVEntityProperties,
           public readonly chassis3D: IDisplayObject3dComponent | null,
      @@ -760,7 +760,7 @@ 

      resetTo (method)

      wheels (property)

      Signature

      -
      readonly wheels: ((IEntity<any, any, IVisualSceneComponent<any, any>, IPhysicsWorldComponent<any, any>> & IPositionable3d) | null)[]
      +
      readonly wheels: (Entity3d<VTypeDoc, PTypeDoc> | null)[]
       

      wheelLocalRotation (property)

      Signature

      diff --git a/modules/core/3d/entities/renderer-3d.entity.ts/index.html b/modules/core/3d/entities/renderer-3d.entity.ts/index.html index 57607039..187c856d 100755 --- a/modules/core/3d/entities/renderer-3d.entity.ts/index.html +++ b/modules/core/3d/entities/renderer-3d.entity.ts/index.html @@ -555,7 +555,7 @@

      Table of contents

      utils

      Renderer3dEntity (class)

      Signature

      -
      export declare class Renderer3dEntity<VS, CC, RC>
      +
      export declare class Renderer3dEntity<TypeDoc>
       
      diff --git a/modules/core/3d/entities/trigger-3d.entity.ts/index.html b/modules/core/3d/entities/trigger-3d.entity.ts/index.html index 5f7aab67..208936be 100755 --- a/modules/core/3d/entities/trigger-3d.entity.ts/index.html +++ b/modules/core/3d/entities/trigger-3d.entity.ts/index.html @@ -571,7 +571,7 @@

      Table of contents

      utils

      Trigger3dEntity (class)

      Signature

      -
      export declare class Trigger3dEntity {
      +
      export declare class Trigger3dEntity<TypeDoc> {
         constructor(public readonly objectBody: ITrigger3dComponent)
       }
       
      diff --git a/modules/core/3d/factories.ts/index.html b/modules/core/3d/factories.ts/index.html index 4d583d43..12194402 100755 --- a/modules/core/3d/factories.ts/index.html +++ b/modules/core/3d/factories.ts/index.html @@ -513,6 +513,13 @@ + + +
    • + + PhysicsTypeDocRepo3D (type alias) + + +
    • + +
    • + + VisualTypeDocRepo3D (type alias) + +
    @@ -582,13 +596,15 @@

    Table of contents

  • loader (property)
  • +
  • PhysicsTypeDocRepo3D (type alias)
  • +
  • VisualTypeDocRepo3D (type alias)

  • utils

    Gg3dWorld (class)

    Signature

    -
    export declare class Gg3dWorld<V, P> {
    -  constructor(public readonly visualScene: V, public readonly physicsWorld: P)
    +
    export declare class Gg3dWorld<VTypeDoc, PTypeDoc, VS, PW> {
    +  constructor(public readonly visualScene: VS, public readonly physicsWorld: PW)
     }
     

    addPrimitiveRigidBody (method)

    @@ -597,18 +613,41 @@

    addPrimitiveRigidBody (method)

    descr: BodyShape3DDescriptor, position: Point3 = Pnt3.O, rotation: Point4 = Qtrn.O, - ): Entity3d<V, P> + material: DisplayObject3dOpts<VTypeDoc['texture']> = {}, + ): Entity3d<VTypeDoc, PTypeDoc>

    addRenderer (method)

    Signature

    -
    addRenderer<
    -    CC extends ICameraComponent<V> = ICameraComponent<V>,
    -    RC extends IRenderer3dComponent<V, CC> = IRenderer3dComponent<V, CC>,
    -  >(camera: CC, canvas?: HTMLCanvasElement, rendererOptions?: Partial<RendererOptions>): Renderer3dEntity<V, CC, RC>
    +
    addRenderer(
    +    camera: VTypeDoc['camera'],
    +    canvas?: HTMLCanvasElement,
    +    rendererOptions?: Partial<RendererOptions>,
    +  ): Renderer3dEntity<VTypeDoc>
     

    loader (property)

    Signature

    -
    readonly loader: Gg3dLoader
    +
    readonly loader: Gg3dLoader<VTypeDoc, PTypeDoc>
    +
    +

    PhysicsTypeDocRepo3D (type alias)

    +

    Signature

    +
    export type PhysicsTypeDocRepo3D = {
    +  factory: IPhysicsBody3dComponentFactory
    +  loader: IPhysicsBody3dComponentLoader
    +  rigidBody: IRigidBody3dComponent
    +  trigger: ITrigger3dComponent
    +  raycastVehicle: IRaycastVehicleComponent
    +}
    +
    +

    VisualTypeDocRepo3D (type alias)

    +

    Signature

    +
    export type VisualTypeDocRepo3D = {
    +  factory: IDisplayObject3dComponentFactory
    +  loader: IDisplayObject3dComponentLoader
    +  displayObject: IDisplayObject3dComponent
    +  renderer: IRenderer3dComponent
    +  camera: ICameraComponent
    +  texture: unknown
    +}
     
    diff --git a/modules/core/3d/loader.ts/index.html b/modules/core/3d/loader.ts/index.html index 60aaa3e9..78399d71 100755 --- a/modules/core/3d/loader.ts/index.html +++ b/modules/core/3d/loader.ts/index.html @@ -635,7 +635,7 @@

    Table of contents

    utils

    Gg3dLoader (class)

    Signature

    -
    export declare class Gg3dLoader {
    +
    export declare class Gg3dLoader<VTypeDoc, PTypeDoc> {
       constructor(protected readonly world: Gg3dWorld)
     }
     
    @@ -648,14 +648,14 @@

    loadGgGlbResources (method)

    public async loadGgGlbResources(
         path: string,
         cachingStrategy: CachingStrategy = CachingStrategy.Nothing,
    -  ): Promise<LoadResourcesResult>
    +  ): Promise<LoadResourcesResult<VTypeDoc, PTypeDoc>>
     

    loadGgGlb (method)

    Signature

    public async loadGgGlb(
         path: string,
         options: Partial<LoadOptions> = defaultLoadOptions,
    -  ): Promise<LoadResultWithProps>
    +  ): Promise<LoadResultWithProps<VTypeDoc, PTypeDoc>>
     

    filesCache (property)

    Signature

    @@ -685,21 +685,30 @@

    LoadOptions (type alias)

    LoadResourcesResult (type alias)

    Signature

    -
    export type LoadResourcesResult = {
    -  resources: { object3D: IDisplayObject3dComponent | null; body: IRigidBody3dComponent | null }[]
    +
    export type LoadResourcesResult<
    +  VTypeDoc extends VisualTypeDocRepo3D = VisualTypeDocRepo3D,
    +  PTypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D
    +> = {
    +  resources: { object3D: VTypeDoc['displayObject'] | null; body: PTypeDoc['rigidBody'] | null }[]
       meta: GgMeta
     }
     

    LoadResult (type alias)

    Signature

    -
    export type LoadResult = {
    -  entities: Entity3d[]
    +
    export type LoadResult<
    +  VTypeDoc extends VisualTypeDocRepo3D = VisualTypeDocRepo3D,
    +  PTypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D
    +> = {
    +  entities: Entity3d<VTypeDoc, PTypeDoc>[]
       meta: GgMeta
     }
     

    LoadResultWithProps (type alias)

    Signature

    -
    export type LoadResultWithProps = LoadResult & { props?: LoadResult[] }
    +
    export type LoadResultWithProps<
    +  VTypeDoc extends VisualTypeDocRepo3D = VisualTypeDocRepo3D,
    +  PTypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D
    +> = LoadResult<VTypeDoc, PTypeDoc> & { props?: LoadResult<VTypeDoc, PTypeDoc>[] }
     
    diff --git a/modules/core/3d/loaders.ts/index.html b/modules/core/3d/loaders.ts/index.html index d04d9cc1..d37d1383 100755 --- a/modules/core/3d/loaders.ts/index.html +++ b/modules/core/3d/loaders.ts/index.html @@ -579,19 +579,19 @@

    Table of contents

    utils

    IDisplayObject3dComponentLoader (interface)

    Signature

    -
    export interface IDisplayObject3dComponentLoader {
    -  loadFromGgGlb(glbFile: ArrayBuffer, meta: GgMeta): Promise<IDisplayObject3dComponent | null>
    +
    export interface IDisplayObject3dComponentLoader<TypeDoc extends VisualTypeDocRepo3D = VisualTypeDocRepo3D> {
    +  loadFromGgGlb(glbFile: ArrayBuffer, meta: GgMeta): Promise<TypeDoc['displayObject'] | null>
     }
     

    IPhysicsBody3dComponentLoader (class)

    Signature

    -
    export declare class IPhysicsBody3dComponentLoader {
    +
    export declare class IPhysicsBody3dComponentLoader<TypeDoc> {
       protected constructor(protected readonly world: IPhysicsWorld3dComponent)
     }
     

    loadFromGgGlb (method)

    Signature

    -
    async loadFromGgGlb(glbFile: ArrayBuffer, meta: GgMeta): Promise<IRigidBody3dComponent[]>
    +
    async loadFromGgGlb(glbFile: ArrayBuffer, meta: GgMeta): Promise<TypeDoc['rigidBody'][]>
     
    diff --git a/modules/core/3d/models/shapes.ts/index.html b/modules/core/3d/models/shapes.ts/index.html index 3ef4e0ce..94c9239c 100755 --- a/modules/core/3d/models/shapes.ts/index.html +++ b/modules/core/3d/models/shapes.ts/index.html @@ -568,6 +568,7 @@

    BodyShape3DDescriptor (type alias)

    Shape3DDescriptor (type alias)

    Signature

    export type Shape3DDescriptor =
    +  | { shape: 'PLANE' }
       | { shape: 'BOX'; dimensions: Point3 }
       | { shape: 'CONE' | 'CYLINDER'; radius: number; height: number }
       | { shape: 'CAPSULE'; radius: number; centersDistance: number }
    diff --git a/modules/core/base/components/i-world-component.ts/index.html b/modules/core/base/components/i-world-component.ts/index.html
    index 48ea72ca..ffe1f739 100755
    --- a/modules/core/base/components/i-world-component.ts/index.html
    +++ b/modules/core/base/components/i-world-component.ts/index.html
    @@ -558,12 +558,15 @@ 

    IWorldComponent (interface)

    export interface IWorldComponent<
       D,
       R,
    -  V extends IVisualSceneComponent<D, R> = IVisualSceneComponent<D, R>,
    -  P extends IPhysicsWorldComponent<D, R> = IPhysicsWorldComponent<D, R>
    +  VTypeDoc extends VisualTypeDocRepo<D, R> = VisualTypeDocRepo<D, R>,
    +  PTypeDoc extends PhysicsTypeDocRepo<D, R> = PhysicsTypeDocRepo<D, R>
     > {
       entity: IEntity | null
    -  addToWorld(world: GgWorld<D, R, V, P>): void
    -  removeFromWorld(world: GgWorld<D, R, V, P>, dispose?: boolean): void
    +
    +  addToWorld(world: GgWorld<D, R, VTypeDoc, PTypeDoc>): void
    +
    +  removeFromWorld(world: GgWorld<D, R, VTypeDoc, PTypeDoc>, dispose?: boolean): void
    +
       dispose(): void
     }
     
    diff --git a/modules/core/base/components/physics/i-body.component.ts/index.html b/modules/core/base/components/physics/i-body.component.ts/index.html index ba0790b3..edd1850e 100755 --- a/modules/core/base/components/physics/i-body.component.ts/index.html +++ b/modules/core/base/components/physics/i-body.component.ts/index.html @@ -555,21 +555,14 @@

    Table of contents

    utils

    IBodyComponent (interface)

    Signature

    -
    export interface IBodyComponent<D, R, PW extends IPhysicsWorldComponent<D, R> = IPhysicsWorldComponent<D, R>>
    -  extends IWorldComponent<D, R, IVisualSceneComponent<D, R>, PW> {
    -  entity: IEntity | null
    +
    export interface IBodyComponent<D, R, TypeDoc extends PhysicsTypeDocRepo<D, R> = PhysicsTypeDocRepo<D, R>>
    +  extends IWorldComponent<D, R, VisualTypeDocRepo<D, R>, TypeDoc> {
    +  entity: IEntity | null;
     
    -  position: D
    -  rotation: R
    +  position: D;
    +  rotation: R;
     
    -  name: string
    -
    -  clone(): IBodyComponent<D, R, PW>
    -
    -  addToWorld(world: GgWorld<D, R, IVisualSceneComponent<D, R>, PW>): void
    -
    -  removeFromWorld(world: GgWorld<D, R, IVisualSceneComponent<D, R>, PW>): void
    -}
    +  name: string;
     
    diff --git a/modules/core/base/components/physics/i-physics-world.component.ts/index.html b/modules/core/base/components/physics/i-physics-world.component.ts/index.html index 6fd19b47..e0ee6516 100755 --- a/modules/core/base/components/physics/i-physics-world.component.ts/index.html +++ b/modules/core/base/components/physics/i-physics-world.component.ts/index.html @@ -555,8 +555,9 @@

    Table of contents

    utils

    IPhysicsWorldComponent (interface)

    Signature

    -
    export interface IPhysicsWorldComponent<D, R> extends IComponent {
    -  readonly factory: any; // type defined in sub-interfaces
    +
    export interface IPhysicsWorldComponent<D, R, TypeDoc extends PhysicsTypeDocRepo<D, R> = PhysicsTypeDocRepo<D, R>>
    +  extends IComponent {
    +  readonly factory: TypeDoc['factory'];
       gravity: D;
       timeScale: number;
     
    diff --git a/modules/core/base/components/physics/i-rigid-body.component.ts/index.html b/modules/core/base/components/physics/i-rigid-body.component.ts/index.html index 0ce33086..43cdfb4f 100755 --- a/modules/core/base/components/physics/i-rigid-body.component.ts/index.html +++ b/modules/core/base/components/physics/i-rigid-body.component.ts/index.html @@ -555,12 +555,12 @@

    Table of contents

    utils

    IRigidBodyComponent (interface)

    Signature

    -
    export interface IRigidBodyComponent<D, R, PW extends IPhysicsWorldComponent<D, R> = IPhysicsWorldComponent<D, R>>
    -  extends IBodyComponent<D, R, PW> {
    +
    export interface IRigidBodyComponent<D, R, TypeDoc extends PhysicsTypeDocRepo<D, R> = PhysicsTypeDocRepo<D, R>>
    +  extends IBodyComponent<D, R, TypeDoc> {
       linearVelocity: D
       angularVelocity: R | D
     
    -  clone(): IRigidBodyComponent<D, R, PW>
    +  clone(): IRigidBodyComponent<D, R, TypeDoc>
     
       /** clear velocities etc. */
       resetMotion(): void
    diff --git a/modules/core/base/components/physics/i-trigger.component.ts/index.html b/modules/core/base/components/physics/i-trigger.component.ts/index.html
    index 5f13a233..32779541 100755
    --- a/modules/core/base/components/physics/i-trigger.component.ts/index.html
    +++ b/modules/core/base/components/physics/i-trigger.component.ts/index.html
    @@ -555,8 +555,8 @@ 

    Table of contents

    utils

    ITriggerComponent (interface)

    Signature

    -
    export interface ITriggerComponent<D, R, PW extends IPhysicsWorldComponent<D, R> = IPhysicsWorldComponent<D, R>>
    -  extends IBodyComponent<D, R, PW> {
    +
    export interface ITriggerComponent<D, R, TypDoc extends PhysicsTypeDocRepo<D, R> = PhysicsTypeDocRepo<D, R>>
    +  extends IBodyComponent<D, R, TypDoc> {
     
    diff --git a/modules/core/base/components/rendering/i-display-object.component.ts/index.html b/modules/core/base/components/rendering/i-display-object.component.ts/index.html index a2b312f1..1aee6fe8 100755 --- a/modules/core/base/components/rendering/i-display-object.component.ts/index.html +++ b/modules/core/base/components/rendering/i-display-object.component.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    IDisplayObjectComponent (interface)

    Signature

    -
    export interface IDisplayObjectComponent<D, R, VS extends IVisualSceneComponent<D, R> = IVisualSceneComponent<D, R>>
    -  extends IWorldComponent<D, R, VS> {
    +
    export interface IDisplayObjectComponent<D, R, TypeDoc extends VisualTypeDocRepo<D, R> = VisualTypeDocRepo<D, R>>
    +  extends IWorldComponent<D, R, TypeDoc> {
       position: D
       rotation: R
       scale: D
    @@ -567,15 +567,15 @@ 

    IDisplayObjectComponent (interface)

    diff --git a/modules/core/base/components/rendering/i-renderer.component.ts/index.html b/modules/core/base/components/rendering/i-renderer.component.ts/index.html index db228237..cd71d8fa 100755 --- a/modules/core/base/components/rendering/i-renderer.component.ts/index.html +++ b/modules/core/base/components/rendering/i-renderer.component.ts/index.html @@ -627,9 +627,9 @@

    Table of contents

    utils

    IRendererComponent (class)

    Signature

    -
    export declare class IRendererComponent<D, R, VS> {
    +
    export declare class IRendererComponent<D, R, VTypeDoc> {
       protected constructor(
    -    public readonly scene: VS,
    +    public readonly scene: IVisualSceneComponent<D, R, VTypeDoc>,
         public readonly canvas?: HTMLCanvasElement,
         options: Partial<RendererOptions> = {}
       )
    @@ -642,11 +642,11 @@ 

    render (method)

    addToWorld (method)

    Signature

    -
    abstract addToWorld(world: GgWorld<D, R, VS, any>): void;
    +
    abstract addToWorld(world: GgWorld<D, R, VTypeDoc>): void;
     

    removeFromWorld (method)

    Signature

    -
    abstract removeFromWorld(world: GgWorld<D, R, VS, any>): void;
    +
    abstract removeFromWorld(world: GgWorld<D, R, VTypeDoc>): void;
     

    resizeRenderer (method)

    Resizes the renderer to the specified size.

    @@ -659,7 +659,7 @@

    dispose (method)

    entity (property)

    Signature

    -
    entity: IEntity<any, any, IVisualSceneComponent<any, any>, IPhysicsWorldComponent<any, any>> | null
    +
    entity: IEntity<any, any, VisualTypeDocRepo<any, any>, PhysicsTypeDocRepo<any, any>> | null
     

    rendererOptions (property)

    Specifies the options for the renderer.

    diff --git a/modules/core/base/components/rendering/i-visual-scene.component.ts/index.html b/modules/core/base/components/rendering/i-visual-scene.component.ts/index.html index f5e69972..a8cdfa5d 100755 --- a/modules/core/base/components/rendering/i-visual-scene.component.ts/index.html +++ b/modules/core/base/components/rendering/i-visual-scene.component.ts/index.html @@ -555,10 +555,11 @@

    Table of contents

    utils

    IVisualSceneComponent (interface)

    Signature

    -
    export interface IVisualSceneComponent<D, R> extends IComponent {
    -  readonly factory: any // type defined in sub-interfaces
    +
    export interface IVisualSceneComponent<D, R, TypeDoc extends VisualTypeDocRepo<D, R> = VisualTypeDocRepo<D, R>>
    +  extends IComponent {
    +  readonly factory: TypeDoc['factory']
     
    -  readonly debugPhysicsDrawerClass?: { new (): IDebugPhysicsDrawer<D, R> }
    +  readonly debugPhysicsDrawerClass?: { new (): IDebugPhysicsDrawer<D, R, TypeDoc> }
     
       init(): Promise<void>
     }
    diff --git a/modules/core/base/data-structures/bitmask.ts/index.html b/modules/core/base/data-structures/bitmask.ts/index.html
    new file mode 100755
    index 00000000..db2f09d5
    --- /dev/null
    +++ b/modules/core/base/data-structures/bitmask.ts/index.html
    @@ -0,0 +1,667 @@
    +
    +
    +
    +  
    +    
    +      
    +      
    +      
    +      
    +      
    +        
    +      
    +      
    +      
    +      
    +      
    +      
    +    
    +    
    +      
    +        core/base/data-structures/bitmask.ts - GG-web-engine
    +      
    +    
    +    
    +      
    +      
    +        
    +        
    +      
    +      
    +
    +
    +    
    +    
    +      
    +    
    +    
    +      
    +        
    +        
    +        
    +        
    +        
    +      
    +    
    +    
    +    
    +    
    +      
    +
    +    
    +    
    +    
    +  
    +  
    +  
    +    
    +    
    +      
    +    
    +    
    +    
    +    
    +    
    +  
    +    
    +    
    +      
    +    
    +    
    +    
    +    
    +    
    +    
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + + + + +

    bitmask overview

    +

    BitMask class provides static methods to manipulate bits in a number.

    +
    +

    Table of contents

    + + +
    +

    utils

    +

    BitMask (class)

    +

    BitMask class provides static methods to manipulate bits in a number.

    +

    Signature

    +
    export declare class BitMask
    +
    +

    full (static method)

    +

    Generates a bitmask with all bits set to 1 upto the provided bit count

    +

    Signature

    +
    static full(bits: number)
    +
    +

    fullArray (static method)

    +

    Generates an array with elements being consecutive numbers starting from 0 up to the provided number

    +

    Signature

    +
    static fullArray(bits: number)
    +
    +

    pack (static method)

    +

    Packs an array of bit indices into a single number

    +

    Signature

    +
    static pack(value: number[], bits: number)
    +
    +

    unpack (static method)

    +

    Unpacks a bitmask into an array of bit indices

    +

    Signature

    +
    static unpack(mask: number, bits: number)
    +
    + + + + + + +
    +
    + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/modules/core/base/data-structures/index.html b/modules/core/base/data-structures/index.html index 7cdaacfa..4f4c8b41 100755 --- a/modules/core/base/data-structures/index.html +++ b/modules/core/base/data-structures/index.html @@ -508,6 +508,7 @@

    Modules

    Directory table of contents

    diff --git a/modules/core/base/entities/controllers/animation-mixer.ts/index.html b/modules/core/base/entities/controllers/animation-mixer.ts/index.html index cd56b556..4c79b22b 100755 --- a/modules/core/base/entities/controllers/animation-mixer.ts/index.html +++ b/modules/core/base/entities/controllers/animation-mixer.ts/index.html @@ -627,7 +627,7 @@

    AnimationMixer (class)

    The current value of the animation can be subscribed to using the subscribeToValue property. The animation function can be changed with transitAnimationFunction or transitFromStaticState.

    Signature

    -
    export declare class AnimationMixer<T> {
    +
    export declare class AnimationMixer<T, D, R, VTypeDoc, PTypeDoc> {
       constructor(
         protected _animationFunction: AnimationFunction<T>,
         protected _lerp: (a: T, b: T, t: number) => T = (a, b, t) => b
    @@ -655,7 +655,7 @@ 

    transitAnimationFunction (method)

    onSpawned (method)

    Signature

    -
    onSpawned(world: GgWorld<any, any>)
    +
    onSpawned(world: GgWorld<D, R, VTypeDoc, PTypeDoc>)
     

    dispose (method)

    Signature

    diff --git a/modules/core/base/entities/i-entity.ts/index.html b/modules/core/base/entities/i-entity.ts/index.html index a6b532fe..f3d0fc3c 100755 --- a/modules/core/base/entities/i-entity.ts/index.html +++ b/modules/core/base/entities/i-entity.ts/index.html @@ -683,7 +683,7 @@

    Table of contents

    utils

    IEntity (class)

    Signature

    -
    export declare class IEntity<D, R, V, P>
    +
    export declare class IEntity<D, R, VTypeDoc, PTypeDoc>
     

    addChildren (method)

    Signature

    @@ -695,15 +695,15 @@

    removeChildren (method)

    addComponents (method)

    Signature

    -
    public addComponents(...components: IWorldComponent<D, R, V, P>[])
    +
    public addComponents(...components: IWorldComponent<D, R, VTypeDoc, PTypeDoc>[])
     

    removeComponents (method)

    Signature

    -
    public removeComponents(components: IWorldComponent<D, R, V, P>[], dispose: boolean = false)
    +
    public removeComponents(components: IWorldComponent<D, R, VTypeDoc, PTypeDoc>[], dispose: boolean = false)
     

    onSpawned (method)

    Signature

    -
    public onSpawned(world: GgWorld<D, R, V, P>)
    +
    public onSpawned(world: GgWorld<D, R, VTypeDoc, PTypeDoc>)
     

    onRemoved (method)

    Signature

    @@ -726,7 +726,14 @@

    tickOrder (property)

    _world (property)

    a world reference, where this entity was added to

    Signature

    -
    _world: GgWorld<D, R, V, P> | null
    +
    _world: GgWorld<
    +  D,
    +  R,
    +  VTypeDoc,
    +  PTypeDoc,
    +  IVisualSceneComponent<D, R, VTypeDoc>,
    +  IPhysicsWorldComponent<D, R, PTypeDoc>
    +> | null
     

    _name (property)

    Signature

    @@ -739,7 +746,7 @@

    _active (property)

    parent (property)

    Signature

    -
    parent: IEntity<any, any, IVisualSceneComponent<any, any>, IPhysicsWorldComponent<any, any>> | null
    +
    parent: IEntity<any, any, VisualTypeDocRepo<any, any>, PhysicsTypeDocRepo<any, any>> | null
     

    _onSpawned$ (property)

    Signature

    diff --git a/modules/core/base/entities/i-renderable.entity.ts/index.html b/modules/core/base/entities/i-renderable.entity.ts/index.html index ae5ad6ce..73fabe07 100755 --- a/modules/core/base/entities/i-renderable.entity.ts/index.html +++ b/modules/core/base/entities/i-renderable.entity.ts/index.html @@ -587,7 +587,7 @@

    Table of contents

    utils

    IRenderableEntity (class)

    Signature

    -
    export declare class IRenderableEntity<D, R, V, P>
    +
    export declare class IRenderableEntity<D, R, TypeDoc, PTypeDoc>
     

    updateVisibility (method)

    Signature

    diff --git a/modules/core/base/entities/i-renderer.entity.ts/index.html b/modules/core/base/entities/i-renderer.entity.ts/index.html index 83489418..7ae1fc4b 100755 --- a/modules/core/base/entities/i-renderer.entity.ts/index.html +++ b/modules/core/base/entities/i-renderer.entity.ts/index.html @@ -596,13 +596,13 @@

    utils

    IRendererEntity (class)

    Represents a base class for a renderer entity.

    Signature

    -
    export declare class IRendererEntity<D, R, VS, RC> {
    -  constructor(public readonly renderer: RC)
    +
    export declare class IRendererEntity<D, R, TypeDoc> {
    +  constructor(public readonly renderer: TypeDoc['renderer'])
     }
     

    onSpawned (method)

    Signature

    -
    onSpawned(world: GgWorld<D, R, VS, any>)
    +
    onSpawned(world: GgWorld<D, R, TypeDoc>)
     

    dispose (method)

    Signature

    diff --git a/modules/core/base/gg-world.ts/index.html b/modules/core/base/gg-world.ts/index.html index 5b73ae41..1fce3014 100755 --- a/modules/core/base/gg-world.ts/index.html +++ b/modules/core/base/gg-world.ts/index.html @@ -622,6 +622,20 @@ + + +
  • + + PhysicsTypeDocRepo (type alias) + + +
  • + +
  • + + VisualTypeDocRepo (type alias) + +
  • @@ -670,13 +684,15 @@

    Table of contents

  • tickListeners (property)
  • +
  • PhysicsTypeDocRepo (type alias)
  • +
  • VisualTypeDocRepo (type alias)

  • utils

    GgWorld (class)

    Signature

    -
    export declare class GgWorld<D, R, V, P> {
    -  protected constructor(public readonly visualScene: V, public readonly physicsWorld: P)
    +
    export declare class GgWorld<D, R, VTypeDoc, PTypeDoc, VS, PW> {
    +  protected constructor(public readonly visualScene: VS, public readonly physicsWorld: PW)
     }
     

    init (method)

    @@ -706,10 +722,11 @@

    dispose (method)

    addPrimitiveRigidBody (method)

    Signature

    abstract addPrimitiveRigidBody(
    -    descr: any,
    +    descr: unknown, // type defined in subclasses
         position?: D,
         rotation?: R,
    -  ): IPositionable<D, R> & IRenderableEntity<D, R, V, P>;
    +    material?: unknown, // type defined in subclasses
    +  ): IPositionable<D, R> & IRenderableEntity<D, R, VTypeDoc>;
     

    addEntity (method)

    Signature

    @@ -733,11 +750,27 @@

    name (property)

    children (property)

    Signature

    -
    readonly children: IEntity<any, any, IVisualSceneComponent<any, any>, IPhysicsWorldComponent<any, any>>[]
    +
    readonly children: IEntity<any, any, VisualTypeDocRepo<any, any>, PhysicsTypeDocRepo<any, any>>[]
     

    tickListeners (property)

    Signature

    -
    readonly tickListeners: IEntity<any, any, IVisualSceneComponent<any, any>, IPhysicsWorldComponent<any, any>>[]
    +
    readonly tickListeners: IEntity<any, any, VisualTypeDocRepo<any, any>, PhysicsTypeDocRepo<any, any>>[]
    +
    +

    PhysicsTypeDocRepo (type alias)

    +

    Signature

    +
    export type PhysicsTypeDocRepo<D, R> = {
    +  factory: unknown
    +  rigidBody: IRigidBodyComponent<D, R>
    +  trigger: ITriggerComponent<D, R>
    +}
    +
    +

    VisualTypeDocRepo (type alias)

    +

    Signature

    +
    export type VisualTypeDocRepo<D, R> = {
    +  factory: unknown
    +  displayObject: IDisplayObjectComponent<D, R>
    +  renderer: IRendererComponent<D, R>
    +}
     
    diff --git a/modules/core/base/interfaces/i-debug-physics-drawer.ts/index.html b/modules/core/base/interfaces/i-debug-physics-drawer.ts/index.html index bba451f7..ad6b18e3 100755 --- a/modules/core/base/interfaces/i-debug-physics-drawer.ts/index.html +++ b/modules/core/base/interfaces/i-debug-physics-drawer.ts/index.html @@ -555,8 +555,8 @@

    Table of contents

    utils

    IDebugPhysicsDrawer (interface)

    Signature

    -
    export interface IDebugPhysicsDrawer<D, R, VS extends IVisualSceneComponent<D, R> = IVisualSceneComponent<D, R>>
    -  extends IDisplayObjectComponent<D, R, VS> {
    +
    export interface IDebugPhysicsDrawer<D, R, TypeDoc extends VisualTypeDocRepo<D, R> = VisualTypeDocRepo<D, R>>
    +  extends IDisplayObjectComponent<D, R, TypeDoc> {
       drawContactPoint(point: D, normal: D, color?: Point3): void
     
       drawLine(from: D, to: D, color?: Point3): void
    diff --git a/modules/core/base/math/quaternion.ts/index.html b/modules/core/base/math/quaternion.ts/index.html
    index 5463b607..3e4df9c9 100755
    --- a/modules/core/base/math/quaternion.ts/index.html
    +++ b/modules/core/base/math/quaternion.ts/index.html
    @@ -540,6 +540,20 @@
         mult (static method)
       
       
    +
    +        
    +          
  • + + conjugate (static method) + + +
  • + +
  • + + opposite (static method) + +
  • @@ -643,6 +657,8 @@

    Table of contents

  • clone (static method)
  • add (static method)
  • mult (static method)
  • +
  • conjugate (static method)
  • +
  • opposite (static method)
  • combineRotations (static method)
  • lerp (static method)
  • slerp (static method)
  • @@ -684,6 +700,18 @@

    mult (static method)

    Signature

    static mult(a: Point4, b: Point4): Point4
     
    +

    conjugate (static method)

    +

    Calculates and returns the conjugate of a quaternion. +The conjugate of a quaternion is obtained by changing the sign of its vector components.

    +

    Signature

    +
    static conjugate(q: Point4): Point4
    +
    +

    opposite (static method)

    +

    Returns the opposite of a quaternion. +It's obtained by negating all quaternion elements(x, y, z and w).

    +

    Signature

    +
    static opposite(q: Point4): Point4
    +

    combineRotations (static method)

    Combines an arbitrary number of quaternions by multiplying them together in order.

    Signature

    diff --git a/modules/core/base/models/body-options.ts/index.html b/modules/core/base/models/body-options.ts/index.html index 28e7f598..dd741449 100755 --- a/modules/core/base/models/body-options.ts/index.html +++ b/modules/core/base/models/body-options.ts/index.html @@ -518,6 +518,13 @@ BodyOptions (interface) + + +
  • + + CollisionGroup (type alias) + +
  • @@ -550,6 +557,7 @@

    Table of contents


    utils

    @@ -560,8 +568,14 @@

    BodyOptions (interface)

    mass: number restitution: number friction: number + ownCollisionGroups: CollisionGroup[] | 'all' + interactWithCollisionGroups: CollisionGroup[] | 'all' }
    +

    CollisionGroup (type alias)

    +

    Signature

    +
    export type CollisionGroup = number
    +
    diff --git a/modules/index.html b/modules/index.html index 4fd3607c..97e22565 100755 --- a/modules/index.html +++ b/modules/index.html @@ -528,6 +528,7 @@

    All modules

  • ammo/ammo-factory.ts
  • ammo/ammo-loader.ts
  • ammo/ammo-utils.ts
  • +
  • ammo/types.ts
  • ammo/components/ammo-body.component.ts
  • ammo/components/ammo-raycast-vehicle.component.ts
  • ammo/components/ammo-rigid-body.component.ts
  • @@ -594,6 +595,7 @@

    All modules

  • core/base/components/rendering/i-display-object.component.ts
  • core/base/components/rendering/i-renderer.component.ts
  • core/base/components/rendering/i-visual-scene.component.ts
  • +
  • core/base/data-structures/bitmask.ts
  • core/base/data-structures/graph.ts
  • core/base/entities/i-entity.ts
  • core/base/entities/i-renderable.entity.ts
  • @@ -622,20 +624,24 @@

    All modules

  • core/dev/gg-static.ts
  • core/dev/index.ts
  • matter/matter-factory.ts
  • +
  • matter/types.ts
  • matter/components/matter-rigid-body.component.ts
  • matter/components/matter-world.component.ts
  • pixi/pixi-factory.ts
  • +
  • pixi/types.ts
  • pixi/components/pixi-display-object.component.ts
  • pixi/components/pixi-renderer.component.ts
  • pixi/components/pixi-scene.component.ts
  • rapier2d/index.ts
  • rapier2d/rapier-2d-factory.ts
  • +
  • rapier2d/types.ts
  • rapier2d/components/rapier-2d-rigid-body.component.ts
  • rapier2d/components/rapier-2d-trigger.component.ts
  • rapier2d/components/rapier-2d-world.component.ts
  • rapier3d/index.ts
  • rapier3d/rapier-3d-factory.ts
  • rapier3d/rapier-3d-loader.ts
  • +
  • rapier3d/types.ts
  • rapier3d/components/rapier-3d-raycast-vehicle.component.ts
  • rapier3d/components/rapier-3d-rigid-body.component.ts
  • rapier3d/components/rapier-3d-trigger.component.ts
  • @@ -643,6 +649,7 @@

    All modules

  • three/three-factory.ts
  • three/three-loader.ts
  • three/three-physics-drawer.ts
  • +
  • three/types.ts
  • three/components/three-camera.component.ts
  • three/components/three-display-object.component.ts
  • three/components/three-renderer-component.ts
  • diff --git a/modules/matter/components/matter-rigid-body.component.ts/index.html b/modules/matter/components/matter-rigid-body.component.ts/index.html index 7618782a..1aabf2e7 100755 --- a/modules/matter/components/matter-rigid-body.component.ts/index.html +++ b/modules/matter/components/matter-rigid-body.component.ts/index.html @@ -629,11 +629,15 @@

    clone (method)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg2dWorld<IVisualScene2dComponent, MatterWorldComponent>): void
    +
    addToWorld(
    +    world: Gg2dWorld<VisualTypeDocRepo2D, MatterPhysicsTypeDocRepo, IVisualScene2dComponent, MatterWorldComponent>,
    +  ): void
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg2dWorld<IVisualScene2dComponent, MatterWorldComponent>): void
    +
    removeFromWorld(
    +    world: Gg2dWorld<VisualTypeDocRepo2D, MatterPhysicsTypeDocRepo, IVisualScene2dComponent, MatterWorldComponent>,
    +  ): void
     

    dispose (method)

    Signature

    diff --git a/modules/matter/components/matter-world.component.ts/index.html b/modules/matter/components/matter-world.component.ts/index.html index 3a3aff5e..b3b6d63e 100755 --- a/modules/matter/components/matter-world.component.ts/index.html +++ b/modules/matter/components/matter-world.component.ts/index.html @@ -526,6 +526,20 @@ init (method) + + +
  • + + registerCollisionGroup (method) + + +
  • + +
  • + + deregisterCollisionGroup (method) + +
  • @@ -606,6 +620,8 @@

    Table of contents

  • utils
  • MatterWorldComponent (class)
    • init (method)
    • +
    • registerCollisionGroup (method)
    • +
    • deregisterCollisionGroup (method)
    • simulate (method)
    • startDebugger (method)
    • stopDebugger (method)
    • @@ -625,6 +641,14 @@

      init (method)

      Signature

      async init(): Promise<void>
       
      +

      registerCollisionGroup (method)

      +

      Signature

      +
      registerCollisionGroup(): CollisionGroup
      +
      +

      deregisterCollisionGroup (method)

      +

      Signature

      +
      deregisterCollisionGroup(group: CollisionGroup): void
      +

      simulate (method)

      Signature

      simulate(delta: number): void
      diff --git a/modules/matter/index.html b/modules/matter/index.html
      index bea0ce5c..5bcc93c9 100755
      --- a/modules/matter/index.html
      +++ b/modules/matter/index.html
      @@ -510,6 +510,7 @@ 

      Directory table of contents

      diff --git a/modules/matter/matter-factory.ts/index.html b/modules/matter/matter-factory.ts/index.html index 8ffd2b02..38c09067 100755 --- a/modules/matter/matter-factory.ts/index.html +++ b/modules/matter/matter-factory.ts/index.html @@ -607,7 +607,7 @@

      createTrigger (method)

      position?: Point2; rotation?: number; }, - ): any + ): never

      transformOptions (method)

      Signature

      diff --git a/modules/matter/types.ts/index.html b/modules/matter/types.ts/index.html new file mode 100755 index 00000000..d2f44851 --- /dev/null +++ b/modules/matter/types.ts/index.html @@ -0,0 +1,609 @@ + + + + + + + + + + + + + + + + + + + + + matter/types.ts - GG-web-engine + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + +
      + + + + + + +
      + + +
      + +
      + + + + + + +
      +
      + + + +
      +
      +
      + + + + + +
      +
      +
      + + + +
      +
      +
      + + + +
      +
      +
      + + + +
      +
      + + + + + + + +

      types overview

      +
      +

      Table of contents

      + + +
      +

      utils

      +

      MatterPhysicsTypeDocRepo (type alias)

      +

      Signature

      +
      export type MatterPhysicsTypeDocRepo = {
      +  factory: MatterFactory
      +  rigidBody: MatterRigidBodyComponent
      +  trigger: never
      +}
      +
      + + + + + + +
      +
      + + +
      + +
      + + + +
      +
      +
      +
      + + + + + + + + + + \ No newline at end of file diff --git a/modules/pixi/components/pixi-display-object.component.ts/index.html b/modules/pixi/components/pixi-display-object.component.ts/index.html index 2b31af27..f4fc2420 100755 --- a/modules/pixi/components/pixi-display-object.component.ts/index.html +++ b/modules/pixi/components/pixi-display-object.component.ts/index.html @@ -657,11 +657,11 @@

      clone (method)

  • addToWorld (method)

    Signature

    -
    addToWorld(world: Gg2dWorld<PixiSceneComponent>): void
    +
    addToWorld(world: Gg2dWorld<PixiVisualTypeDocRepo2D, PhysicsTypeDocRepo2D, PixiSceneComponent>): void
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg2dWorld<PixiSceneComponent>): void
    +
    removeFromWorld(world: Gg2dWorld<PixiVisualTypeDocRepo2D, PhysicsTypeDocRepo2D, PixiSceneComponent>): void
     

    dispose (method)

    Signature

    diff --git a/modules/pixi/components/pixi-renderer.component.ts/index.html b/modules/pixi/components/pixi-renderer.component.ts/index.html index 2e578bfc..1d1b3fef 100755 --- a/modules/pixi/components/pixi-renderer.component.ts/index.html +++ b/modules/pixi/components/pixi-renderer.component.ts/index.html @@ -625,11 +625,11 @@

    resizeRenderer (method)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg2dWorld<PixiSceneComponent>): void
    +
    addToWorld(world: Gg2dWorld<PixiVisualTypeDocRepo2D>): void
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg2dWorld<PixiSceneComponent>): void
    +
    removeFromWorld(world: Gg2dWorld<PixiVisualTypeDocRepo2D>): void
     

    render (method)

    Signature

    diff --git a/modules/pixi/index.html b/modules/pixi/index.html index 0166f00d..a53fc75d 100755 --- a/modules/pixi/index.html +++ b/modules/pixi/index.html @@ -510,6 +510,7 @@

    Directory table of contents

    diff --git a/modules/pixi/pixi-factory.ts/index.html b/modules/pixi/pixi-factory.ts/index.html index 2d378a54..26934792 100755 --- a/modules/pixi/pixi-factory.ts/index.html +++ b/modules/pixi/pixi-factory.ts/index.html @@ -514,19 +514,19 @@
    • - - PixiFactory (class) + + PixiDisplayObject3dOpts (type alias) -
    @@ -650,11 +658,11 @@

    clone (method)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg2dWorld<IVisualScene2dComponent, Rapier2dWorldComponent>): void
    +
    addToWorld(world: Gg2dWorld<VisualTypeDocRepo2D, Rapier2dPhysicsTypeDocRepo>): void
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg2dWorld<IVisualScene2dComponent, Rapier2dWorldComponent>): void
    +
    removeFromWorld(world: Gg2dWorld<VisualTypeDocRepo2D, Rapier2dPhysicsTypeDocRepo>): void
     

    resetMotion (method)

    Signature

    @@ -680,6 +688,10 @@

    name (property)

    Signature

    name: string
     
    +

    collisionGroups (property)

    +

    Signature

    +
    collisionGroups: any
    +
    diff --git a/modules/rapier2d/components/rapier-2d-trigger.component.ts/index.html b/modules/rapier2d/components/rapier-2d-trigger.component.ts/index.html index 15c91c9c..8550f1cd 100755 --- a/modules/rapier2d/components/rapier-2d-trigger.component.ts/index.html +++ b/modules/rapier2d/components/rapier-2d-trigger.component.ts/index.html @@ -613,7 +613,7 @@

    Rapier2dTriggerComponent (class)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg2dWorld<IVisualScene2dComponent, Rapier2dWorldComponent>): void
    +
    addToWorld(world: Gg2dWorld<VisualTypeDocRepo2D, Rapier2dPhysicsTypeDocRepo>): void
     

    checkOverlaps (method)

    Signature

    diff --git a/modules/rapier2d/components/rapier-2d-world.component.ts/index.html b/modules/rapier2d/components/rapier-2d-world.component.ts/index.html index 58d10315..5a023dc2 100755 --- a/modules/rapier2d/components/rapier-2d-world.component.ts/index.html +++ b/modules/rapier2d/components/rapier-2d-world.component.ts/index.html @@ -533,6 +533,20 @@ simulate (method) + + +
  • + + registerCollisionGroup (method) + + +
  • + +
  • + + deregisterCollisionGroup (method) + +
  • @@ -568,6 +582,13 @@ handleIdEntityMap (property) +
  • + +
  • + + lockedCollisionGroups (property) + +
  • @@ -607,11 +628,14 @@

    Table of contents

  • Rapier2dWorldComponent (class)
  • @@ -629,6 +653,14 @@

    simulate (method)

    Signature

    simulate(delta: number): void
     
    +

    registerCollisionGroup (method)

    +

    Signature

    +
    registerCollisionGroup(): CollisionGroup
    +
    +

    deregisterCollisionGroup (method)

    +

    Signature

    +
    deregisterCollisionGroup(group: CollisionGroup): void
    +

    startDebugger (method)

    Signature

    startDebugger(world: Gg2dWorld, drawer: IDebugPhysicsDrawer<Point2, number>): void
    @@ -649,6 +681,10 @@ 

    handleIdEntityMap (property)

    Signature

    readonly handleIdEntityMap: any
     
    +

    lockedCollisionGroups (property)

    +

    Signature

    +
    lockedCollisionGroups: number[]
    +
    diff --git a/modules/rapier2d/index.html b/modules/rapier2d/index.html index 3a5c57d2..32bcdfba 100755 --- a/modules/rapier2d/index.html +++ b/modules/rapier2d/index.html @@ -511,6 +511,7 @@

    Directory table of contents

  • rapier2d/components
  • rapier2d/index.ts
  • rapier2d/rapier-2d-factory.ts
  • +
  • rapier2d/types.ts
  • diff --git a/modules/rapier2d/types.ts/index.html b/modules/rapier2d/types.ts/index.html new file mode 100755 index 00000000..2234747c --- /dev/null +++ b/modules/rapier2d/types.ts/index.html @@ -0,0 +1,609 @@ + + + + + + + + + + + + + + + + + + + + + rapier2d/types.ts - GG-web-engine + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + + + + +

    types overview

    +
    +

    Table of contents

    + + +
    +

    utils

    +

    Rapier2dPhysicsTypeDocRepo (type alias)

    +

    Signature

    +
    export type Rapier2dPhysicsTypeDocRepo = {
    +  factory: Rapier2dFactory
    +  rigidBody: Rapier2dRigidBodyComponent
    +  trigger: Rapier2dTriggerComponent
    +}
    +
    + + + + + + +
    +
    + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/modules/rapier3d/components/rapier-3d-raycast-vehicle.component.ts/index.html b/modules/rapier3d/components/rapier-3d-raycast-vehicle.component.ts/index.html index 64de1894..9491e599 100755 --- a/modules/rapier3d/components/rapier-3d-raycast-vehicle.component.ts/index.html +++ b/modules/rapier3d/components/rapier-3d-raycast-vehicle.component.ts/index.html @@ -582,6 +582,13 @@ resetSuspension (method) + + +
  • + + clone (method) + +
  • @@ -642,6 +649,7 @@

    Table of contents

  • isWheelTouchesGround (method)
  • getWheelTransform (method)
  • resetSuspension (method)
  • +
  • clone (method)
  • dispose (method)
  • _nativeVehicle (property)
  • @@ -657,11 +665,15 @@

    Rapier3dRaycastVehicleComponent (

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg3dWorld<IVisualScene3dComponent, Rapier3dWorldComponent>)
    +
    addToWorld(
    +    world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo, IVisualScene3dComponent, Rapier3dWorldComponent>,
    +  )
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg3dWorld<IVisualScene3dComponent, Rapier3dWorldComponent>)
    +
    removeFromWorld(
    +    world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo, IVisualScene3dComponent, Rapier3dWorldComponent>,
    +  )
     

    addWheel (method)

    Signature

    @@ -691,6 +703,10 @@

    resetSuspension (method)

    Signature

    resetSuspension(): void
     
    +

    clone (method)

    +

    Signature

    +
    clone(): Rapier3dRaycastVehicleComponent
    +

    dispose (method)

    Signature

    dispose()
    diff --git a/modules/rapier3d/components/rapier-3d-rigid-body.component.ts/index.html b/modules/rapier3d/components/rapier-3d-rigid-body.component.ts/index.html
    index c181344f..f61894f9 100755
    --- a/modules/rapier3d/components/rapier-3d-rigid-body.component.ts/index.html
    +++ b/modules/rapier3d/components/rapier-3d-rigid-body.component.ts/index.html
    @@ -582,6 +582,13 @@
         name (property)
       
       
    +
    +        
    +          
  • + + collisionGroups (property) + +
  • @@ -628,6 +635,7 @@

    Table of contents

  • _nativeBody (property)
  • _nativeBodyColliders (property)
  • name (property)
  • +
  • collisionGroups (property)
  • @@ -650,11 +658,11 @@

    clone (method)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg3dWorld<IVisualScene3dComponent, Rapier3dWorldComponent>): void
    +
    addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo>): void
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg3dWorld<IVisualScene3dComponent, Rapier3dWorldComponent>): void
    +
    removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo>): void
     

    resetMotion (method)

    Signature

    @@ -680,6 +688,10 @@

    name (property)

    Signature

    name: string
     
    +

    collisionGroups (property)

    +

    Signature

    +
    collisionGroups: any
    +
    diff --git a/modules/rapier3d/components/rapier-3d-trigger.component.ts/index.html b/modules/rapier3d/components/rapier-3d-trigger.component.ts/index.html index 4d002e9e..0ca28345 100755 --- a/modules/rapier3d/components/rapier-3d-trigger.component.ts/index.html +++ b/modules/rapier3d/components/rapier-3d-trigger.component.ts/index.html @@ -613,7 +613,7 @@

    Rapier3dTriggerComponent (class)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg3dWorld<IVisualScene3dComponent, Rapier3dWorldComponent>): void
    +
    addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, Rapier3dPhysicsTypeDocRepo>): void
     

    checkOverlaps (method)

    Signature

    diff --git a/modules/rapier3d/components/rapier-3d-world.component.ts/index.html b/modules/rapier3d/components/rapier-3d-world.component.ts/index.html index 75cdf01d..e48de0a3 100755 --- a/modules/rapier3d/components/rapier-3d-world.component.ts/index.html +++ b/modules/rapier3d/components/rapier-3d-world.component.ts/index.html @@ -533,6 +533,20 @@ simulate (method) + + +
  • + + registerCollisionGroup (method) + + +
  • + +
  • + + deregisterCollisionGroup (method) + +
  • @@ -568,6 +582,13 @@ handleIdEntityMap (property) +
  • + +
  • + + lockedCollisionGroups (property) + +
  • @@ -607,11 +628,14 @@

    Table of contents

  • Rapier3dWorldComponent (class)
  • @@ -629,6 +653,14 @@

    simulate (method)

    Signature

    simulate(delta: number): void
     
    +

    registerCollisionGroup (method)

    +

    Signature

    +
    registerCollisionGroup(): CollisionGroup
    +
    +

    deregisterCollisionGroup (method)

    +

    Signature

    +
    deregisterCollisionGroup(group: CollisionGroup): void
    +

    startDebugger (method)

    Signature

    startDebugger(world: Gg3dWorld, drawer: IDebugPhysicsDrawer<Point3, Point4>): void
    @@ -649,6 +681,10 @@ 

    handleIdEntityMap (property)

    Signature

    readonly handleIdEntityMap: any
     
    +

    lockedCollisionGroups (property)

    +

    Signature

    +
    lockedCollisionGroups: number[]
    +
    diff --git a/modules/rapier3d/index.html b/modules/rapier3d/index.html index cf2b2112..21b3b6b1 100755 --- a/modules/rapier3d/index.html +++ b/modules/rapier3d/index.html @@ -512,6 +512,7 @@

    Directory table of contents

  • rapier3d/index.ts
  • rapier3d/rapier-3d-factory.ts
  • rapier3d/rapier-3d-loader.ts
  • +
  • rapier3d/types.ts
  • diff --git a/modules/rapier3d/rapier-3d-factory.ts/index.html b/modules/rapier3d/rapier-3d-factory.ts/index.html index b0196d05..8ee13335 100755 --- a/modules/rapier3d/rapier-3d-factory.ts/index.html +++ b/modules/rapier3d/rapier-3d-factory.ts/index.html @@ -533,6 +533,13 @@ createTrigger (method) + + +
  • + + createRaycastVehicle (method) + +
  • @@ -586,6 +593,7 @@

    Table of contents

  • Rapier3dFactory (class) @@ -619,6 +627,10 @@

    createTrigger (method)

    }, ): Rapier3dTriggerComponent
  • +

    createRaycastVehicle (method)

    +

    Signature

    +
    createRaycastVehicle(chassis: Rapier3dRigidBodyComponent): never
    +

    createColliderDescr (method)

    Signature

    public createColliderDescr(descriptor: Shape3DDescriptor): ColliderDesc[]
    diff --git a/modules/rapier3d/types.ts/index.html b/modules/rapier3d/types.ts/index.html
    new file mode 100755
    index 00000000..725a4444
    --- /dev/null
    +++ b/modules/rapier3d/types.ts/index.html
    @@ -0,0 +1,611 @@
    +
    +
    +
    +  
    +    
    +      
    +      
    +      
    +      
    +      
    +        
    +      
    +      
    +      
    +      
    +      
    +      
    +    
    +    
    +      
    +        rapier3d/types.ts - GG-web-engine
    +      
    +    
    +    
    +      
    +      
    +        
    +        
    +      
    +      
    +
    +
    +    
    +    
    +      
    +    
    +    
    +      
    +        
    +        
    +        
    +        
    +        
    +      
    +    
    +    
    +    
    +    
    +      
    +
    +    
    +    
    +    
    +  
    +  
    +  
    +    
    +    
    +      
    +    
    +    
    +    
    +    
    +    
    +  
    +    
    +    
    +      
    +    
    +    
    +    
    +    
    +    
    +    
    + +
    + + + + + + +
    + + +
    + +
    + + + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + + + + +

    types overview

    +
    +

    Table of contents

    + + +
    +

    utils

    +

    Rapier3dPhysicsTypeDocRepo (type alias)

    +

    Signature

    +
    export type Rapier3dPhysicsTypeDocRepo = {
    +  factory: Rapier3dFactory
    +  loader: Rapier3dLoader
    +  rigidBody: Rapier3dRigidBodyComponent
    +  trigger: Rapier3dTriggerComponent
    +  raycastVehicle: never //Rapier3dRaycastVehicleComponent;
    +}
    +
    + + + + + + +
    +
    + + +
    + +
    + + + +
    +
    +
    +
    + + + + + + + + + + \ No newline at end of file diff --git a/modules/three/components/three-display-object.component.ts/index.html b/modules/three/components/three-display-object.component.ts/index.html index cb5757bf..2a5096df 100755 --- a/modules/three/components/three-display-object.component.ts/index.html +++ b/modules/three/components/three-display-object.component.ts/index.html @@ -657,11 +657,11 @@

    clone (method)

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg3dWorld<ThreeSceneComponent>): void
    +
    addToWorld(world: Gg3dWorld<ThreeVisualTypeDocRepo, PhysicsTypeDocRepo3D, ThreeSceneComponent>): void
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg3dWorld<ThreeSceneComponent>): void
    +
    removeFromWorld(world: Gg3dWorld<ThreeVisualTypeDocRepo, PhysicsTypeDocRepo3D, ThreeSceneComponent>): void
     

    dispose (method)

    Signature

    diff --git a/modules/three/components/three-renderer-component.ts/index.html b/modules/three/components/three-renderer-component.ts/index.html index 65a7bc1e..bdaa5a78 100755 --- a/modules/three/components/three-renderer-component.ts/index.html +++ b/modules/three/components/three-renderer-component.ts/index.html @@ -614,19 +614,19 @@

    ThreeRendererComponent (class)

    export declare class ThreeRendererComponent {
       constructor(
         public readonly scene: ThreeSceneComponent,
    +    public camera: ThreeCameraComponent,
         public readonly canvas?: HTMLCanvasElement,
    -    rendererOptions: Partial<RendererOptions> = {},
    -    public camera: ThreeCameraComponent = new ThreeCameraComponent(new PerspectiveCamera(75, 1, 1, 10000))
    +    rendererOptions: Partial<RendererOptions> = {}
       )
     }
     

    addToWorld (method)

    Signature

    -
    addToWorld(world: Gg3dWorld<ThreeSceneComponent>)
    +
    addToWorld(world: Gg3dWorld<ThreeVisualTypeDocRepo>)
     

    removeFromWorld (method)

    Signature

    -
    removeFromWorld(world: Gg3dWorld<ThreeSceneComponent>)
    +
    removeFromWorld(world: Gg3dWorld<ThreeVisualTypeDocRepo>)
     

    resizeRenderer (method)

    Signature

    diff --git a/modules/three/index.html b/modules/three/index.html index f1ac20b4..035972cf 100755 --- a/modules/three/index.html +++ b/modules/three/index.html @@ -512,6 +512,7 @@

    Directory table of contents

  • three/three-factory.ts
  • three/three-loader.ts
  • three/three-physics-drawer.ts
  • +
  • three/types.ts
  • diff --git a/modules/three/three-factory.ts/index.html b/modules/three/three-factory.ts/index.html index 40bdb93d..47a2aa3e 100755 --- a/modules/three/three-factory.ts/index.html +++ b/modules/three/three-factory.ts/index.html @@ -513,6 +513,13 @@