Skip to content
Discussion options

You must be logged in to vote

A simple example using Raylib to show the solution:

View WebAssemlby-demo in the Browser

GitHub repositories for C and C++ projects for the demo above (Desktop and WebAssembly):

main.c (full code)
#include <box3d/box3d.h>
#include <raylib.h>
#include <raymath.h> // Required for QuaternionToMatrix and MatrixToFloat
#include <rlgl.h>    // Required for rlPushMatrix, rlMultMatrixf, rlPopMatrix
#include <stdio.h>
#include <stdlib.h> // Required for malloc/free

// Global or persistent data
b3WorldId worldId;
b3DebugDraw dd;

Camera3D camera = { 0

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@ivan-enzhaev
Comment options

@yudin-s
Comment options

@ivan-enzhaev
Comment options

@ivan-enzhaev
Comment options

Answer selected by ivan-enzhaev
@ivan-enzhaev
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants