Add box collisions and add unload for modelanimations for bone socket

This commit is contained in:
maiconpintoabreu 2025-09-28 10:06:52 +01:00 committed by Nikolas
parent a1d02a5ec8
commit 1e257d1738
3 changed files with 125 additions and 0 deletions

View file

@ -41,6 +41,7 @@ pub fn main() anyerror!void {
var animCurrentFrame: i32 = 0;
const modelAnimations = try rl.loadModelAnimations("examples/models/resources/models/gltf/greenman.glb");
const animsCount = modelAnimations.len;
defer rl.unloadModelAnimations(modelAnimations);
// indices of bones for sockets
var boneSocketIndex: [BONE_SOCKETS]usize = undefined;