class
FRopeSolver
- Module
- Physics
- Header
#include "Physics/RopeSolver.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using FCollide = std::function<bool(const Vec3& from, Vec3& to, float radius)> |
Public functions
| Returns | Name | Description |
|---|---|---|
void | Build | |
void | SetRestLength | |
void | PinStart | |
void | PinEnd | |
void | Step | |
size_t | GetParticleCount | |
const std::vector<Vec3>& | GetPositions | |
float | GetRestLength | |
float | GetCurrentLength | |
Vec3 | GetStartForce | |
Vec3 | GetEndForce | |
float | GetTension | |
uint64_t | ComputeChecksum |
Function details
Build
C++
void Build(const Vec3& start, const Vec3& end, int32_t segments, float restLength)SetRestLength
C++
void SetRestLength(float restLength)PinStart
C++
void PinStart(const Vec3& position, bool pinned)PinEnd
C++
void PinEnd(const Vec3& position, bool pinned)Step
C++
void Step(float deltaTime, const FRopeParams& params, const FCollide& collide = FCollide())GetParticleCount
C++
size_t GetParticleCount() constGetPositions
C++
const std::vector<Vec3>& GetPositions() constGetRestLength
C++
float GetRestLength() constGetCurrentLength
C++
float GetCurrentLength() constGetStartForce
C++
Vec3 GetStartForce() constGetEndForce
C++
Vec3 GetEndForce() constGetTension
C++
float GetTension() constComputeChecksum
C++
uint64_t ComputeChecksum() constGenerated from Physics/RopeSolver.h via physics.json · Dec 5, 2026Version 1.1.0