suicmez/tests/ode_test.sui
2025-12-17 13:18:12 +05:30

20 lines
No EOL
369 B
Text

# ODE Integration Test
fn main() -> int do
# Initialize ODE
ode_init()
# Create a world
let world = ode_world_create()
# Set gravity (0, -9.81, 0)
ode_world_set_gravity(world, 0.0, -9.81, 0.0)
# Step the simulation
ode_world_step(world, 0.016) # 60 FPS timestep
# Clean up
ode_world_destroy(world)
ode_close()
0
end