Premium Only Content

Rogue Engine - Component Basics - In Two Minutes
Components in Rogue Engine enable you to add code to objects in your scene.
The Rogue Engine framework is built on top of the Three.js library. Any object in a Rogue scene can have code attached to it to use the power of Three.js. These bits of code are called components.
Here is a very simple example of a Rogue Engine component.
You can use the default cube for this example.
First right click in the Assets panel and create a new component. Components can be javascript or typescript. We will use typescript. Give it a name and confirm.
That will create a blank component in the asset panel.
If you double click this icon it will open up in your default code editor. If you don't have one installed I would recommend downloading Visual Studio Code from Microsoft.
The blank component already has somethings set up. All components import the Rogue Engine
The component already has its class Export set up and three methods, awake, start and update. For this example we just need the update method.
We are going to rotate the cube in the scene so in the update method that runs each time the screen updates, we can write this.object3d.rotateY and then give it an angle.
This is fine but we don't know how fast the scene is updating so if we want to keep the rotation consistent whatever speed the scene is running, we can ask Rogue how long since the last update and use that value.
We get this delta value by reading RE.Runtime.deltaTime.
So that's our code - save it and go back to the Rogue Editor.
If we run our scene without the component attached to the cube, nothing happens. But if we add the component to the cube by dragging and dropping it and then run the scene, you will see that the cube rotates smoothly.
So that's how you add a basic component to an object in Rogue Engine.
-
2:04:21
Badlands Media
15 hours agoDevolution Power Hour Ep. 388: Assassination, Inflection Points, and the Battle Ahead
324K98 -
2:08:03
Inverted World Live
8 hours agoCharlie Kirk Assassinated | Ep. 106
94.5K51 -
3:01:07
TimcastIRL
9 hours agoCharlie Kirk Assassinated, Suspect In Custody | Timcast IRL
625K1K -
5:44:49
Redacted News
12 hours agoTurning the Tide: 9/11 Justice in 2025 — Day 1 with Sen. Ron Johnson, Richard Gage and More
175K78 -
2:48:00
TheSaltyCracker
9 hours agoYou're Being Hunted ReeEEStream 9-10-25
294K604 -
13:09:56
LFA TV
23 hours agoBREAKING: CHARLIE KIRK ASSASSINATED - WEDNESDAY 9/10/25
378K128 -
1:31:08
I_Came_With_Fire_Podcast
9 hours agoCheck Fire: God Bless Charlie Kirk
93.9K27 -
1:13:35
Glenn Greenwald
11 hours agoCharlie Kirk Assassinated; NATO Alleges Russian Drones Flew Over Poland, and More | SYSTEM UPDATE #512
291K304 -
1:46:28
Badlands Media
1 day agoAltered State S3 Ep. 45: The Assassination of Charlie Kirk
167K29 -
8:56:53
Dr Disrespect
18 hours ago🔴LIVE - DR DISRESPECT - THE FINALS - NEW SEASON 8 LAUNCH EVENT W/ THE SHOTTY BOYS
285K11