bitbybit.dev runner example - code javascript - 3D slide with physics
This example shows how you can write actual bitbybit javascript code by using the bitbybit-runner. Example creates 3D CAD model of the slide, enables physics and creates basic UI. Users can run the Havok physics simulation.
<!DOCTYPE html>
<html lang="en">
<head>
<title>3D Slide With Physics - Bit By Bit Developers</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="styles.css" />
<script src="https://cdn.jsdelivr.net/gh/bitbybit-dev/bitbybit-assets@0.15.9/runner/bitbybit-runner.js"></script>
<script type="module" src="script.js"></script>
</head>
<body>
<div class="example">
<a
class="logo"
href="https://bitbybit.dev"
target="_blank"
rel="noopener noreferrer"
>
<img
alt="Logo of Bit by bit developers company"
src="https://bitbybit.dev/assets/logo-gold-small.png"
/>
<div>bitbybit.dev</div>
</a>
<h1>Runner Example - Actual Code</h1>
<div class="myCanvasZone">
<canvas id="myCanvas"></canvas>
</div>
<a
href="https://bitbybit.dev/projects/public/UwnghvO89ocgFv5U3P4m/script/sWwcLOMIjUpdigPv315i/script-3d-slide-with-physics-in-project-3d-slide-from-wire-offsets-by-author-matas"
target="_blank"
rel="noopener noreferrer"
>
This example is based on the project that was coded in TypeScript on bitbybit.dev Monaco editor.
</a>
</div>
</body>
</html>