1.1.68 • Published 7 months ago

@ninjagl/core v1.1.68

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@ninjagl/core ライブラリ

DEMO: https://ninja-core.vercel.app

NinjaGL のコアライブラリ

主な依存関係

  • three
  • @react-three/fiber
  • @react-three/drei
  • @react-three/xr
  • @react-three/postprocessing

Coreの説明

物理エンジンはthree-mesh-bvhで構成される。

  • static: 外的移動のない静的なMesh
    • step1: OMの変更フラグchangedBvhを付ける(全体として)
      • staticなomがsetPosition、setRotation, setScaleで変更されたとき
      • 新しいOMが追加/削除されたとき
    • step2: useFrame内で設定されたフラグをチェック
  • moveable: 衝突によって移動するMesh
    • step1: moveablesにgrp化されたchildrenをforEachで、IDに紐づくOMを確認
    • step2: OMにorderMovedフラグをチェック
    • step3: 該当するOMのBVHMeshの衝突点とmoveableの質量(mass)

.env のパラメータ

マルチプレイヤーや AINPCs をテストするときに利用

新 Skyway

新 Skyway の AppID とシークレットキー

OpenAI-API

OPENAI の API キー

ShowCase の実行

pnpm install
pnpm dev

Build & Publish

lib issue

npm publish

ライブラリメンテナ

pnpm vitest

その他

Playerオブジェクト

アニメーションのキー名は以下に設定

  • 静止: Idle
  • 歩く: Walk
  • 走る: Run
  • ジャンプ: Jump
1.1.63

7 months ago

1.1.62

7 months ago

1.1.61

7 months ago

1.1.67

7 months ago

1.1.66

7 months ago

1.1.65

7 months ago

1.1.64

7 months ago

1.1.68

7 months ago

1.1.60

7 months ago

1.1.56

7 months ago

1.1.55

7 months ago

1.1.58

7 months ago

1.1.57

7 months ago

1.1.54

7 months ago

1.1.52

8 months ago

1.1.53

8 months ago

1.1.51

9 months ago

1.1.50

9 months ago

1.1.49

9 months ago

1.1.45

10 months ago

1.1.48

10 months ago

1.1.47

10 months ago

1.1.46

10 months ago

1.1.44

10 months ago

1.1.38

10 months ago

1.1.37

10 months ago

1.1.39

10 months ago

1.1.41

10 months ago

1.1.40

10 months ago

1.1.43

10 months ago

1.1.42

10 months ago

1.1.36

11 months ago

1.1.35

11 months ago

1.1.34

11 months ago

1.1.33

11 months ago

1.1.30

11 months ago

1.1.32

11 months ago

1.1.31

11 months ago

1.1.29

11 months ago

1.1.28

11 months ago

1.1.27

12 months ago

1.1.26

12 months ago

1.0.62

1 year ago

1.0.61

1 year ago

1.0.60

1 year ago

1.0.66

1 year ago

1.0.65

1 year ago

1.0.64

1 year ago

1.0.63

1 year ago

1.0.69

1 year ago

1.0.68

1 year ago

1.0.67

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.1.9

12 months ago

1.1.8

12 months ago

1.1.7

12 months ago

1.1.6

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.2

12 months ago

1.0.40

1 year ago

1.1.12

12 months ago

1.0.44

1 year ago

1.1.11

12 months ago

1.0.43

1 year ago

1.1.10

12 months ago

1.0.42

1 year ago

1.0.41

1 year ago

1.1.16

12 months ago

1.0.48

1 year ago

1.1.15

12 months ago

1.0.47

1 year ago

1.1.14

12 months ago

1.0.46

1 year ago

1.1.13

12 months ago

1.0.45

1 year ago

1.1.19

12 months ago

1.1.18

12 months ago

1.1.17

12 months ago

1.0.49

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.1.23

12 months ago

1.0.55

1 year ago

1.1.22

12 months ago

1.0.54

1 year ago

1.1.21

12 months ago

1.0.53

1 year ago

1.1.20

12 months ago

1.0.52

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.1.25

12 months ago

1.0.57

1 year ago

1.1.24

12 months ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago