BVH is using. BVH is built automatically on first ray cast.
engine_init({look_angle: 0.7, autorun: 1});
gl.clearColor(0.5, 0.5, 0.7, 1);
var ground = actor_init({shape: build_chess_shape()});
var glb_scale = 0.25;
var indexed_shape = shape_init();
indexed_shape_init(indexed_shape);
var indexed_actor = actor_init({shape: indexed_shape, scale: glb_scale, pos: vec(0, 0, -0.4)});
var json = 0;
var shape = shape_init({load: "./glb/werewolf_walking_furry.glb", onload: (shape, json0) => {
json = json0;
animixer_init(json, indexed_shape, 0);
}});
ground.animator = function() {
if (!json) return;
animixer_step_animation(json, 0.01);
indexed_shape_update_animation_position(indexed_shape);
}
Copyright 2026. All rights reserved.
License: EULA
1. Can be pubished _only_ in minified form as part of bigger project.
2. Free for personal and commercial use.