Skip to content

Commit

Permalink
release 0.0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGura committed Dec 18, 2023
1 parent d4a29f2 commit b534094
Show file tree
Hide file tree
Showing 271 changed files with 7,082 additions and 1,243 deletions.
9 changes: 9 additions & 0 deletions documentation/docs/modules/ammo/ammo-factory.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ parent: Modules
- [AmmoFactory (class)](#ammofactory-class)
- [createRigidBody (method)](#createrigidbody-method)
- [createTrigger (method)](#createtrigger-method)
- [createRaycastVehicle (method)](#createraycastvehicle-method)
- [createShape (method)](#createshape-method)
- [createRigidBodyFromShape (method)](#createrigidbodyfromshape-method)
- [createTriggerFromShape (method)](#createtriggerfromshape-method)
Expand Down Expand Up @@ -60,6 +61,14 @@ createTrigger(
): AmmoTriggerComponent
```

### createRaycastVehicle (method)

**Signature**

```ts
createRaycastVehicle(chassis: AmmoRigidBodyComponent): AmmoRaycastVehicleComponent
```

### createShape (method)

**Signature**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ parent: Modules

- [utils](#utils)
- [AmmoBodyComponent (class)](#ammobodycomponent-class)
- [refreshCG (method)](#refreshcg-method)
- [clone (method)](#clone-method)
- [addToWorld (method)](#addtoworld-method)
- [removeFromWorld (method)](#removefromworld-method)
- [dispose (method)](#dispose-method)
- [name (property)](#name-property)
- [entity (property)](#entity-property)
- [addedToWorld (property)](#addedtoworld-property)
- [\_interactWithCGsMask (property)](#_interactwithcgsmask-property)
- [\_ownCGsMask (property)](#_owncgsmask-property)

---

Expand All @@ -33,6 +37,14 @@ export declare class AmmoBodyComponent<T> {
}
```

### refreshCG (method)

**Signature**

```ts
abstract refreshCG(): void;
```

### clone (method)

**Signature**
Expand All @@ -46,15 +58,15 @@ abstract clone(): AmmoBodyComponent<T>;
**Signature**

```ts
abstract addToWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void;
addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
```

### removeFromWorld (method)

**Signature**

```ts
abstract removeFromWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void;
removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
```

### dispose (method)
Expand All @@ -80,3 +92,27 @@ name: string
```ts
entity: any
```

### addedToWorld (property)

**Signature**

```ts
addedToWorld: boolean
```

### \_interactWithCGsMask (property)

**Signature**

```ts
_interactWithCGsMask: any
```

### \_ownCGsMask (property)

**Signature**

```ts
_ownCGsMask: any
```
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ parent: Modules
- [isWheelTouchesGround (method)](#iswheeltouchesground-method)
- [getWheelTransform (method)](#getwheeltransform-method)
- [resetSuspension (method)](#resetsuspension-method)
- [clone (method)](#clone-method)
- [nativeVehicle (property)](#nativevehicle-property)
- [vehicleTuning (property)](#vehicletuning-property)
- [wheelDirectionCS0 (property)](#wheeldirectioncs0-property)
Expand All @@ -45,7 +46,7 @@ export declare class AmmoRaycastVehicleComponent {
**Signature**

```ts
addToWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>)
addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>)
```

### addWheel (method)
Expand Down Expand Up @@ -104,6 +105,14 @@ getWheelTransform(wheelIndex: number): { position: Point3; rotation: Point4 }
resetSuspension(): void
```

### clone (method)

**Signature**

```ts
public clone(): AmmoRaycastVehicleComponent
```

### nativeVehicle (property)

**Signature**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ parent: Modules
- [clone (method)](#clone-method)
- [addToWorld (method)](#addtoworld-method)
- [removeFromWorld (method)](#removefromworld-method)
- [refreshCG (method)](#refreshcg-method)
- [resetMotion (method)](#resetmotion-method)
- [entity (property)](#entity-property)

Expand Down Expand Up @@ -45,15 +46,23 @@ clone(): AmmoRigidBodyComponent
**Signature**

```ts
addToWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
```

### removeFromWorld (method)

**Signature**

```ts
removeFromWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
```

### refreshCG (method)

**Signature**

```ts
refreshCG(): void
```

### resetMotion (method)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ parent: Modules
- [clone (method)](#clone-method)
- [addToWorld (method)](#addtoworld-method)
- [removeFromWorld (method)](#removefromworld-method)
- [refreshCG (method)](#refreshcg-method)
- [dispose (method)](#dispose-method)
- [entity (property)](#entity-property)
- [onEnter$ (property)](#onenter-property)
Expand Down Expand Up @@ -57,15 +58,23 @@ clone(): AmmoTriggerComponent
**Signature**

```ts
addToWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>)
addToWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>)
```

### removeFromWorld (method)

**Signature**

```ts
removeFromWorld(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
removeFromWorld(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
```

### refreshCG (method)

**Signature**

```ts
refreshCG(): void
```

### dispose (method)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ parent: Modules
- [AmmoWorldComponent (class)](#ammoworldcomponent-class)
- [init (method)](#init-method)
- [simulate (method)](#simulate-method)
- [registerCollisionGroup (method)](#registercollisiongroup-method)
- [deregisterCollisionGroup (method)](#deregistercollisiongroup-method)
- [startDebugger (method)](#startdebugger-method)
- [stopDebugger (method)](#stopdebugger-method)
- [dispose (method)](#dispose-method)
- [\_dynamicAmmoWorld (property)](#_dynamicammoworld-property)
- [lockedCollisionGroups (property)](#lockedcollisiongroups-property)

---

Expand Down Expand Up @@ -47,13 +50,29 @@ async init(): Promise<void>
simulate(delta: number): void
```

### registerCollisionGroup (method)

**Signature**

```ts
registerCollisionGroup(): CollisionGroup
```

### deregisterCollisionGroup (method)

**Signature**

```ts
deregisterCollisionGroup(group: CollisionGroup): void
```

### startDebugger (method)

**Signature**

```ts
startDebugger(
world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>,
world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>,
drawer: IDebugPhysicsDrawer<Point3, Point4>,
): void
```
Expand All @@ -63,7 +82,7 @@ startDebugger(
**Signature**

```ts
stopDebugger(world: Gg3dWorld<IVisualScene3dComponent, AmmoWorldComponent>): void
stopDebugger(world: Gg3dWorld<VisualTypeDocRepo3D, AmmoPhysicsTypeDocRepo>): void
```

### dispose (method)
Expand All @@ -81,3 +100,11 @@ dispose(): void
```ts
_dynamicAmmoWorld: any
```

### lockedCollisionGroups (property)

**Signature**

```ts
lockedCollisionGroups: number[]
```
1 change: 1 addition & 0 deletions documentation/docs/modules/ammo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ has_children: true
- [ammo/ammo-loader.ts](/gg-web-engine/modules/ammo/ammo-loader.ts)
- [ammo/ammo-utils.ts](/gg-web-engine/modules/ammo/ammo-utils.ts)
- [ammo/components](/gg-web-engine/modules/ammo/components)
- [ammo/types.ts](/gg-web-engine/modules/ammo/types.ts)
32 changes: 32 additions & 0 deletions documentation/docs/modules/ammo/types.ts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: ammo/types.ts
nav_order: 10
parent: Modules
---

## types overview

---

<h2 class="text-delta">Table of contents</h2>

- [utils](#utils)
- [AmmoPhysicsTypeDocRepo (type alias)](#ammophysicstypedocrepo-type-alias)

---

# utils

## AmmoPhysicsTypeDocRepo (type alias)

**Signature**

```ts
export type AmmoPhysicsTypeDocRepo = {
factory: AmmoFactory
loader: AmmoLoader
rigidBody: AmmoRigidBodyComponent
trigger: AmmoTriggerComponent
raycastVehicle: AmmoRaycastVehicleComponent
}
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: core/2d/components/physics/i-physics-world-2d.component.ts
nav_order: 10
nav_order: 11
parent: Modules
---

Expand All @@ -22,7 +22,6 @@ parent: Modules
**Signature**

```ts
export interface IPhysicsWorld2dComponent extends IPhysicsWorldComponent<Point2, number> {
readonly factory: IPhysicsBody2dComponentFactory
}
export interface IPhysicsWorld2dComponent<TypeDoc extends PhysicsTypeDocRepo2D = PhysicsTypeDocRepo2D>
extends IPhysicsWorldComponent<Point2, number, TypeDoc> {}
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: core/2d/components/physics/i-rigid-body-2d.component.ts
nav_order: 11
nav_order: 12
parent: Modules
---

Expand All @@ -22,8 +22,8 @@ parent: Modules
**Signature**

```ts
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
}
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: core/2d/components/physics/i-trigger-2d.component.ts
nav_order: 12
nav_order: 13
parent: Modules
---

Expand All @@ -22,6 +22,6 @@ parent: Modules
**Signature**

```ts
export interface ITrigger2dComponent<PW extends IPhysicsWorld2dComponent = IPhysicsWorld2dComponent>
extends ITriggerComponent<Point2, number, PW> {
export interface ITrigger2dComponent<TypeDoc extends PhysicsTypeDocRepo2D = PhysicsTypeDocRepo2D>
extends ITriggerComponent<Point2, number, TypeDoc> {
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: core/2d/components/rendering/i-display-object-2d.component.ts
nav_order: 13
nav_order: 14
parent: Modules
---

Expand All @@ -22,6 +22,6 @@ parent: Modules
**Signature**

```ts
export interface IDisplayObject2dComponent<VS extends IVisualScene2dComponent = IVisualScene2dComponent>
extends IDisplayObjectComponent<Point2, number, VS> {}
export interface IDisplayObject2dComponent<TypeDoc extends VisualTypeDocRepo2D = VisualTypeDocRepo2D>
extends IDisplayObjectComponent<Point2, number, TypeDoc> {}
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: core/2d/components/rendering/i-renderer-2d.component.ts
nav_order: 14
nav_order: 15
parent: Modules
---

Expand All @@ -22,5 +22,5 @@ parent: Modules
**Signature**

```ts
export declare class IRenderer2dComponent<VS>
export declare class IRenderer2dComponent<TypeDoc>
```
Loading

0 comments on commit b534094

Please sign in to comment.