struct
ProjectileMovementComponent
UE's ProjectileMovementComponent: kinematic flight for anything thrown, fired or launched, without a rigid body. FGameplayMovementSystem integrates the velocity each frame, sweeps the step so a fast projectile cannot tunnel through a wall between frames, and bounces or stops on what it hits. The weapon ProjectileComponent is a different thing — damage and explosions for the Combat plugin — and the two can sit on one entity.
- Module
- Game
- Header
#include "Game/Components/ProjectileMovementComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
float | initialSpeed | Default 20.0f. |
float | maxSpeed | 0 = no limit. Clamps gravity and homing too, so a homing missile turns rather than accelerating forever. Default 0.0f. |
Vec3 | launchDirection | Launch direction in the entity's own space, rotated by its rotation at the first simulated frame. The engine's forward is -Z. Default Vec3(0.0f, 0.0f, -1.0f). |
float | gravityScale | Default 1.0f. |
bool | rotationFollowsVelocity | Default false. |
float | collisionRadius | Radius of the swept sphere; 0 sweeps a ray. Default 0.05f. |
bool | shouldBounce | Default false. |
float | bounciness | Share of the speed along the hit normal kept after a bounce. Default 0.6f. |
float | friction | Share of the speed along the surface lost on a bounce. Default 0.2f. |
float | bounceStopSpeed | Below this speed after a bounce the projectile comes to rest instead of chattering on the floor forever. Default 0.5f. |
float | homingAcceleration | Default 0.0f. |
Vec3 | velocity | Default Vec3(0.0f, 0.0f, 0.0f). |
bool | launched | Default false. |
bool | simulating | Default true. |
int32_t | bounceCount | Default 0. |
EntityID | homingTarget | Default INVALID_ENTITY. |
EntityID | lastHitEntity | Default INVALID_ENTITY. |
Vec3 | lastHitLocation | Default Vec3(0.0f, 0.0f, 0.0f). |
Vec3 | lastHitNormal | Default Vec3(0.0f, 0.0f, 0.0f). |
Generated from Game/Components/ProjectileMovementComponent.h via game.json · Nov 5, 2026Version 1.0.0