class
MSplineComponent
- Module
- Game
- Header
#include "Game/MSplineComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | closedLoop | Closed loop: the last segment wraps back to the first point. Default false. |
Constructors
| Signature | Name | Description |
|---|---|---|
MSplineComponent() = default | MSplineComponent |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnRegister | |
void | PullFromMirror | |
void | AddPoint | Control points (local space, relative to the owning actor). |
void | SetPoint | |
void | ClearPoints | |
int32_t | GetPointCount | |
Vec3 | GetPoint | |
void | SetClosedLoop | |
bool | IsClosedLoop | |
Vec3 | SampleLocal | Sampling t in [0,1] across the whole spline (uniform in segment space — NOT arc length; use SampleWorldByDistance for constant speed). |
Vec3 | SampleWorld | |
Vec3 | DirectionWorld | Unit direction of travel at t, in world space. |
float | RollAt | Roll (degrees) and cross-section scale at t, blended between points. |
Vec2 | ScaleAt | |
float | GetLength | Arc-length helpers: approximate length, and constant-speed sampling by distance along the spline. |
Vec3 | SampleWorldByDistance | |
const std::vector<FSplinePoint>& | Points | The points this component samples: the Spline component's once registered, its own before that. |
Function details
MSplineComponent
C++
MSplineComponent() = defaultOnRegister
C++
void OnRegister() overridePullFromMirror
C++
void PullFromMirror(World* ecs, EntityID entity) overrideAddPoint
C++
void AddPoint(const Vec3& localPos)Control points (local space, relative to the owning actor).
SetPoint
C++
void SetPoint(int32_t index, const Vec3& localPos)ClearPoints
C++
void ClearPoints()GetPointCount
C++
int32_t GetPointCount() constGetPoint
C++
Vec3 GetPoint(int32_t index) constSetClosedLoop
C++
void SetClosedLoop(bool closed)IsClosedLoop
C++
bool IsClosedLoop() constSampleLocal
C++
Vec3 SampleLocal(float t) constSampling t in [0,1] across the whole spline (uniform in segment space — NOT arc length; use SampleWorldByDistance for constant speed).
SampleWorld
C++
Vec3 SampleWorld(float t) constDirectionWorld
C++
Vec3 DirectionWorld(float t) constUnit direction of travel at t, in world space.
RollAt
C++
float RollAt(float t) constRoll (degrees) and cross-section scale at t, blended between points.
ScaleAt
C++
Vec2 ScaleAt(float t) constGetLength
C++
float GetLength(int subdivisionsPerSegment = 16) constArc-length helpers: approximate length, and constant-speed sampling by distance along the spline.
SampleWorldByDistance
C++
Vec3 SampleWorldByDistance(float distance, int subdivisionsPerSegment = 16) constPoints
C++
const std::vector<FSplinePoint>& Points() constThe points this component samples: the Spline component's once registered, its own before that.
Generated from Game/MSplineComponent.h via game.json · Nov 5, 2026Version 1.0.0