Skip to content
Nahuel Rocchetti edited this page Mar 6, 2024 · 9 revisions

Grinds

image

What Does It Do?

The Grinds feature adds a Grind Prefab into your scene. The grind system works independently from models, with their own visualizer and collision system. This prefab has 2 important elements, the nodes and the line.

Nodes are the black stars in the grind prefab, while the lines are the red bars between the nodes You can move these black stars as you want to create your grind paths.

image image

In game, on contact with a line, the player will start grinding alongside the lines.

image

Common Problems

You might run into a problem where some grinds might break your combo when you jump out of them.

The easiest way to fix this is by selecting the "GrindPath" child GameObject in your grind and checking "Prevent Combo Breaking" in the inspector.

image

image

This adds a very small buffer to when you can land on the floor after jumping out of a grind, making it so that you don't land on the surface below the grind immediately when you jump.

Other ways to fix it are by elevating the grind rail above the surface below, or applying the "NonStableSurface" layer to the surface below, making it so that you slide off it instead of landing on it.

image

Longer and turning Grinds

In this example, you wish to make the grind on this green railing longer, and expand it to the gray railing.

What you need to do here is to click on the node you wish to expand from, then press C your keyboard, this will create a new node that you can move to your desired spot, here it will be on the gray railing

tutoto

image

Notice how the new node is named 3, and how a second line was created. Names of nodes and lines do not matter, but they are named in a numbered ordered for clarification.

You can also add a new node by clicking on the node you want to expand, then clicking "Add Node" on the Inspector

image

Features

Almost every element in a grind prefab has it's own configuration options, everything that is in a red square in this image has options that you can modify to your will

image

Grind Prefab Options

By Clicking on the grind prefab, you can repair a grind that the tools consider broken, you can add a new node, this node like the other examples will follow the naming convention, and you can remove a node, wich will remove the last node in order in the current grind prefab.

image

Nodes Options

Retour / Turn around

On a node, checking the Retour / Turn around checkbox will make that node a Retour, your character on contact with that node will turn around and grind on the opposite direction

fgsfg

Node orientation

If you need to orient nodes to be upright or upside down, you can click on a node and click on one of the 2 buttons in the inspector

image

Lines Options

Poles

Checking the "Is Pole" checkbox will turn the current end of the line into a pole. When the player reaches the end of a grind and it's a pole, they handplant.

⚠️ WARNING: This also happens when going down a pole: the player handplants inside the pole. Avoid this by adding an extra non-pole line at the bottom.

pole

Corner Boosts

You can remove the corner boost from lines in a grind by unchecking the checkbox in Corner Boost, the Corner boost checkpoint is enabled by default.

Disabling a corner boost on a line will make the player impossible to get a corner boost when turning from that specific line.

cornerboost

Upward Grind Jump

Jumping from a grind that is angled up will give you more height, uncheck the checkbox to disable it.

Always Flip Back

At the end of a grind, this makes your character do a 180 degree flip, uncheck the checkbox to disable it

Sound Effects

Lets you pick between a variety of sound effects for your grind line.

Split Line

The Split line button will split a line in 2, by adding a new node in the middle.

image

Join Nodes, make loops

Select two nodes at once and click "Join Nodes" to join them with a line. This can be used to make loops, among other things.

Clone this wiki locally