From install to a character that crawls, in five steps.
1.1 Install the plugin
Section titled “1.1 Install the plugin”- Install Vertex Adaptive Collision from Fab to your Unreal Engine 5.8.
- Open your project.
- Go to Edit → Plugins, search for
Vertex Adaptive Collisionand tick it. - Click Restart Now.
Plugins window: search box with Vertex Adaptive Collision, the plugin ticked.
1.2 Set up your character
Section titled “1.2 Set up your character”Pick the option that matches your character.
Option A: Blueprint character (most projects)
Section titled “Option A: Blueprint character (most projects)”Use this if your character Blueprint’s parent is Character (for example BP_ThirdPersonCharacter from the Third Person template).
- Open your character Blueprint.
- In the toolbar, click Class Settings.
- In the Details panel, set Parent Class to
Vertex Character. - Click Compile and Save.
Character Blueprint, Class Settings open: Details panel with Parent Class set to Vertex Character.
Your character works exactly as before. The plugin’s settings are now on its Character Movement component.
Option B: C++ character
Section titled “Option B: C++ character”Use this if your character Blueprint’s parent is your own C++ class. You swap two components in that class’s constructor. This works with any class based on ACharacter.
- Close the editor.
- Open your module’s
.Build.csfile (for exampleSource/MyGame/MyGame.Build.cs) and add"VertexAdaptiveCollision"toPublicDependencyModuleNames. - In your character’s header file, change the constructor declaration to take an object initializer:
AMyCharacter(const FObjectInitializer& ObjectInitializer);
- In your character’s
.cppfile, add these includes:#include "Components/VertexCapsuleComponent.h"#include "Movement/VertexCharacterMovementComponent.h" - Change the constructor definition so it passes the two plugin components to
Super(keep the code that was inside the braces):AMyCharacter::AMyCharacter(const FObjectInitializer& ObjectInitializer): Super(ObjectInitializer.SetDefaultSubobjectClass<UVertexCapsuleComponent>(ACharacter::CapsuleComponentName).SetDefaultSubobjectClass<UVertexCharacterMovementComponent>(ACharacter::CharacterMovementComponentName)){} - Build the project from your IDE and open the editor.
Replace AMyCharacter with your class name. In Blueprint, use Get Character Movement → Cast To VertexCharacterMovementComponent wherever this guide uses Get Vertex Character Movement.
1.3 Create your first preset
Section titled “1.3 Create your first preset”A preset is a named collision shape. This one is a lying capsule for crawling.
- Open your character Blueprint.
- In the Components panel, select Character Movement.
- In the Details panel, search for
Shape Presets. - Click + next to Shape Presets and expand the new entry.
- Set Name to
Crawl. - Expand Shape and set:
- Shape: Capsule
- Extent: X 34, Y 34, Z 88 (radius 34, half height 88)
- Rotation: Y (Pitch) 90, so the capsule lies along the character’s forward direction
- Compile and save.
Character Movement Details panel: Shape Presets with the Crawl entry expanded (Name Crawl, Shape Capsule, Extent 34 / 34 / 88, Rotation Y 90).
1.4 Switch to the preset from input
Section titled “1.4 Switch to the preset from input”This toggles crawling with the C key and refuses to stand up under a low ceiling.
-
In the Content Browser, open the folder with your Input Actions (Third Person template:
Input/Actions). -
Right-click → Input → Input Action, name it
IA_Crawl. -
Open your Input Mapping Context (Third Person template:
Input/IMC_Default), click + next to Mappings, chooseIA_Crawland set the key to C. Save.IMC_Default: Mappings list with IA_Crawl mapped to the C key.
-
Open your character Blueprint and add a Boolean variable
IsCrawling. -
In the Event Graph, right-click, search for
IA_Crawland add the EnhancedInputAction IA_Crawl event. -
Add Get Vertex Character Movement. Drag from it and add Can Fit Collision Shape Preset.
-
Add a Select node. Connect its Return Value to Preset Name on Can Fit (this makes its options names). Connect IsCrawling to its Index, then type
Crawlinto False andDefaultinto True.Defaultis always the character’s normal capsule. -
From the Started pin, add a Branch with the Can Fit result as the Condition.
-
From True: drag from Get Vertex Character Movement, add Set Collision Shape Preset with the same Select result, then Set IsCrawling to NOT IsCrawling.
Event Graph: EnhancedInputAction IA_Crawl (Started) to Branch on Can Fit Collision Shape Preset, Select (IsCrawling: False Crawl, True Default), True to Set Collision Shape Preset and Set IsCrawling = NOT IsCrawling.
-
Use IsCrawling in your Animation Blueprint to play the crawl animation.
-
Compile, save and press Play. Press C to crawl and C again to stand up.
From False you can play a “no room” sound or simply do nothing.
1.5 See the shape while testing
Section titled “1.5 See the shape while testing”While playing, press ` (the key above Tab) to open the console and type:
show Collision: draws the real collision shape.VAC.Debug 1: shows the movement mode, the preset in use and the shape on screen.VAC.Debug 0hides it.VAC.Preset Crawl: switches to a preset without any Blueprint.VAC.Presetalone switches back to the normal capsule.
These commands work in the editor and in Development builds, not in Shipping builds.
PIE viewport while crawling: show Collision drawing the lying capsule, and the cyan VAC.Debug 1 line at the top.
Next: How-to Guides.