Robosim Studio is a powerful 3D scene editor that allows you to create immersive Robosim experiences. As a clone of Roblox within the Websim environment, Robosim enables you to design and build interactive 3D worlds, games, and simulations. With Robosim Studio, you can add various objects, configure lighting, and even add custom scripts to objects for dynamic behavior, all within a user-friendly interface that makes it easy to bring your creative visions to life.
The Robosim Studio interface is divided into two main sections:
When interacting with the 3D viewport:
Note: Click on the 3D viewport to enable these controls. Press ESC to release mouse control.
The skybox is the background of your 3D scene. You can change its color using the color picker in the Skybox Settings section.
Default value: #87CEEB
(Sky blue)
Ambient light is the general background lighting of your scene. You can adjust its color and intensity.
Property | Default Value | Description |
---|---|---|
Color | #ffffff (White) |
The color of the ambient light |
Intensity | 0.5 |
The brightness of the ambient light (range: 0 to 1) |
You can add various types of lights to your scene to create more complex lighting setups.
Property | Default Value | Description |
---|---|---|
Type | Point Light | Choose between Point, Spot, or Directional light |
Color | #ffffff (White) |
The color of the light |
Intensity | 1.0 |
The brightness of the light (range: 0 to 2) |
Position (X, Y, Z) | 0, 0, 0 |
The position of the light in 3D space |
You can add various 3D objects to your scene and customize their properties.
Property | Default Value | Description |
---|---|---|
Name | (Empty) | A name for your object |
Position (X, Y, Z) | 0, 0, 0 |
The position of the object in 3D space |
Shape | Cube | Choose between Cube, Sphere, Cylinder, Cone, Torus, or Plane |
Scale (X, Y, Z) | 1, 1, 1 |
The size of the object in each dimension |
Rotation (X, Y, Z) | 0, 0, 0 |
The rotation of the object in degrees |
Color | #00ff00 (Green) |
The color of the object |
Metalness | 0.3 |
How metallic the object appears (range: 0 to 1) |
Roughness | 0.4 |
How rough or smooth the object appears (range: 0 to 1) |
The "Compile" button is the recommended way to generate and execute your Robosim scene. When you click this button, it performs the following actions:
While compilation is the recommended method, you can still generate and execute JSON separately if needed:
Note: Manual JSON generation and execution should mainly be used for advanced operations or troubleshooting.
Robosim Studio allows you to add custom scripts to objects, enabling dynamic behaviors and interactions. These scripts are executed each frame and are attached directly to the objects.
this
to refer to the current object in the script.scene.getObjectByName()
.this.rotation.y += 0.01;
This script rotates the object around its Y-axis. Each frame, it increases the Y rotation by 0.01 radians, creating a continuous spinning effect.
this.position.y = Math.sin(Date.now() * 0.001) * 2;
This script makes the object move up and down. It uses a sine wave based on the current time to create a smooth, oscillating motion. The object will move 2 units up and down from its original position.
const box1 = scene.getObjectByName({object_name}, true);
const box2 = scene.getObjectByName({object_name}, true);
function checkCollision() {
const box1BB = new THREE.Box3().setFromObject(box1);
const box2BB = new THREE.Box3().setFromObject(box2);
if (box1BB.intersectsBox(box2BB)) {
// Objects are colliding
box2.material.color.set(0x00ff00); // Green
} else {
// Objects are not colliding
box2.material.color.set(0xff0000); // Red
}
}
checkCollision();
This script checks if two objects (box1 and box2) are colliding. It creates bounding boxes around each object and checks if they intersect. If they do, it changes the color of box2 to green. If not, it changes the color to red. This script should be attached to one of the objects involved in the collision check.
Remember to replace {object_name} with the actual names of your objects when using these scripts.
Once you've finished creating your Robosim scene, you can export and publish it for others to enjoy. Here's how: