Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lyurongjian/glb2convexshape
A Defold library for generate .convexshape file from .glb file.
https://github.com/lyurongjian/glb2convexshape
3d collision convexshape defold glb
Last synced: about 2 months ago
JSON representation
A Defold library for generate .convexshape file from .glb file.
- Host: GitHub
- URL: https://github.com/lyurongjian/glb2convexshape
- Owner: LyuRongjian
- License: mit
- Created: 2024-06-17T09:34:51.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T09:20:27.000Z (7 months ago)
- Last Synced: 2024-10-25T09:48:22.182Z (3 months ago)
- Topics: 3d, collision, convexshape, defold, glb
- Language: Lua
- Homepage:
- Size: 59.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Defold library for generate .convexshape file from .glb file
---
## How to use it
1. Add release `.zip` file in your project file `game.project -> Main -> Project -> Dependencies` and reopen your project;
2. Right click `.glb` file in your project and select `Generate convexshape file`, it will create a `*-convexshapes` folder and a `*collision game object` contains `.convexshape` in the folder before;
3. You can use this `.go` file as a collision shape, you can add model in this `.go` file, but you'd better **not** do that, because when you run this script to regenerate convexshape this `.go` file will be covered. You can put both `*collision.go` and a model in a `.go` file when this go file in a `collection` file.## Current problems
1. Not support `Sparse Accessors` in glb files.
2. There still have 0.04 distance between two collision shapes, you can read this artical for detail .
3. Only test in simple models, so i dont know if it works in more complex models.