This template showcases how to apply impulses to physics objects using a custom behavior script.
The scene consists of a static floor and a dynamic box with a RigidBody behavior attached to it.
When you press the button, a custom behavior script applies an impulse to the box, making it jump.
The custom behavior script demonstrates how to access the RigidBody component of an object and apply an impulse force to it, simulating a jumping motion.
Feel free to experiment with the impulse force values and direction to create different jumping behaviors for the box.
This project includes a default splash page - a 'launch' screen shown to the user when they first land on your page. It's important for both technical and user experience related reasons. You can customize it in the index.html file.
Rendering Engine
three.js
Supported Browsers
Google Chrome
Microsoft Edge
Safari on iOS and MacOS
Scripting Language
TypeScript