Rogue Engine - Rapier Physics - In Sixty Seconds

11 months ago
63

Gets started quickly with Rapier Physics in Rogue Engine.

To set up a Rapier Physics scene in Rogue Engine, from your project list select New Project.

Choose a name and location for the project, hit Create and wait for the project files to be generated.

When the default project appears, select the default cube and make it into a floor shape using the transform inspector.

Now create a new Object 3D in the Hierarchy and rename it "Config".

To download the Rapier Physics components, go to the Marketplace - the button is top right in the workspace.

From the marketplace, scroll down and find Rogue Rapier Physics and install the package.

When that's done, go back to your Config object and add a Rapier Config component by clicking on the Add component area in the inspector

Select the floor object and add a Rapier body and Rapier Cuboid component.

Set the type of the Rapier body to Fixed.

Add a box to the scene and give it Rapier Body and Rapier Cuboid components

Make sure the type is set to Dynamic

Now test the scene by pressing play.

And that's your basic Rapier Physics scene in Rogue Engine

Loading comments...