Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VOXELFORMAT: CUBZH: add animation support #486

Closed
mgerhardy opened this issue Jul 2, 2024 · 1 comment
Closed

VOXELFORMAT: CUBZH: add animation support #486

mgerhardy opened this issue Jul 2, 2024 · 1 comment
Labels
animation format Voxel or mesh format related

Comments

@mgerhardy
Copy link
Collaborator

https://github.com/Nanskip/cubzh-modules/tree/main/nanimator

{
    "animations": {
        "default": {
            "playSpeed": 12,
            "loopStart": 0,
            "loopEnd": 0,
            "maxTime": 35,
            "shapes": {
                "shape_1": {
                    "name": "shape_1",
                    "frames": {
                        "13_": {
                            "position": {
                                "_x": 0,
                                "_y": 0,
                                "_z": 0
                            },
                            "rotation": {
                                "_w": -0.490904,
                                "_edirty": false,
                                "_y": 0,
                                "_z": -0,
                                "_ey": 0,
                                "_ez": 4.16785,
                                "_x": 0.871213,
                                "_ex": 0
                            },
                            "interpolation": "linear"
                        },
                        "0_": {
                            "position": {
                                "_x": 0,
                                "_y": 0,
                                "_z": 0
                            },
                            "rotation": {
                                "_w": 1,
                                "_edirty": false,
                                "_y": 0,
                                "_z": 0,
                                "_ey": 0,
                                "_ez": 0,
                                "_x": 0,
                                "_ex": 0
                            },
                            "interpolation": "linear"
                        },
                        "35_": {
                            "position": {
                                "_x": 0,
                                "_y": 0,
                                "_z": 0
                            },
                            "rotation": {
                                "_w": -0.999552,
                                "_edirty": false,
                                "_y": 0,
                                "_z": 0,
                                "_ey": 0,
                                "_ez": 6.22333,
                                "_x": 0.029921,
                                "_ex": -0
                            },
                            "interpolation": "linear"
                        }
                    }
                }
            }
        }
    },
    "shape": "lunarloo.damn_sword",
    "shapeType": "shape"
}   
@mgerhardy
Copy link
Collaborator Author

There is still #469 though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
animation format Voxel or mesh format related
Projects
None yet
Development

No branches or pull requests

1 participant