1.1.68 • Published 8 months ago

@ninjagl/core v1.1.68

Weekly downloads
-
License
MIT
Repository
github
Last release
8 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

8 months ago

1.1.62

8 months ago

1.1.61

8 months ago

1.1.67

8 months ago

1.1.66

8 months ago

1.1.65

8 months ago

1.1.64

8 months ago

1.1.68

8 months ago

1.1.60

8 months ago

1.1.56

9 months ago

1.1.55

9 months ago

1.1.58

9 months ago

1.1.57

9 months ago

1.1.54

9 months ago

1.1.52

9 months ago

1.1.53

9 months ago

1.1.51

10 months ago

1.1.50

10 months ago

1.1.49

10 months ago

1.1.45

11 months ago

1.1.48

11 months ago

1.1.47

11 months ago

1.1.46

11 months ago

1.1.44

11 months ago

1.1.38

12 months ago

1.1.37

12 months ago

1.1.39

12 months ago

1.1.41

12 months ago

1.1.40

12 months ago

1.1.43

12 months ago

1.1.42

12 months ago

1.1.36

12 months ago

1.1.35

12 months ago

1.1.34

12 months ago

1.1.33

12 months ago

1.1.30

12 months ago

1.1.32

12 months ago

1.1.31

12 months ago

1.1.29

12 months ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year 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

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.2

1 year ago

1.0.40

1 year ago

1.1.12

1 year ago

1.0.44

1 year ago

1.1.11

1 year ago

1.0.43

1 year ago

1.1.10

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.1.16

1 year ago

1.0.48

1 year ago

1.1.15

1 year ago

1.0.47

1 year ago

1.1.14

1 year ago

1.0.46

1 year ago

1.1.13

1 year ago

1.0.45

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.0.49

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.1.23

1 year ago

1.0.55

1 year ago

1.1.22

1 year ago

1.0.54

1 year ago

1.1.21

1 year ago

1.0.53

1 year ago

1.1.20

1 year ago

1.0.52

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.1.25

1 year ago

1.0.57

1 year ago

1.1.24

1 year 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