Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/FTaperedCapsuleSpecializeSamplin-
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ComputeGoldenSpiralPoints
(
TArray< FVec3 >& Points, |
Chaos/TaperedCapsule.h | ||
static void ComputeGoldenSpiralPoints
(
TArray< FVec3 >& Points, |
Use the golden spiral method to generate evenly spaced points on a tapered capsule (truncated cone with two hemispherical ends). | Chaos/TaperedCapsule.h |
ComputeGoldenSpiralPoints(TArray< FVec3 > &, const FTaperedCapsule &, const int32)
| Name | ComputeGoldenSpiralPoints |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/TaperedCapsule.h |
| Include Path | #include "Chaos/TaperedCapsule.h" |
static void ComputeGoldenSpiralPoints
(
TArray < FVec3 > & Points,
const FTaperedCapsule & Capsule,
const int32 NumPoints
)
ComputeGoldenSpiralPoints(TArray< FVec3 > &, const FVec3 &, const FVec3 &, const FReal, const FReal, const FReal, const int32, const int32)
Description
Use the golden spiral method to generate evenly spaced points on a tapered capsule (truncated cone with two hemispherical ends).
The "golden" part is derived from the golden ratio; stand at the center, turn a golden ratio of whole turns, then emit a point in that direction.
Points are generated starting from the bottom of the tapered capsule part, ending at the top. Contiguous entries in `Points_ generally will not be spatially adjacent.
Points_ to append to. Origin_ is the bottom-most point of the tapered capsule. Axis_ is the orientation of the tapered capsule. Radius1 is the first radius of the tapered capsule. Radius2_ is the second radius of the tapered capsule. Height is the height of the tapered capsule. NumPoints_ is the number of points to generate. SpiralSeed_ is the starting index for golden spiral generation. When using this method to continue a spiral started elsewhere, `SpiralSeed_ should equal the number of particles already created.
| Name | ComputeGoldenSpiralPoints |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/TaperedCapsule.h |
| Include Path | #include "Chaos/TaperedCapsule.h" |
static void ComputeGoldenSpiralPoints
(
TArray < FVec3 > & Points,
const FVec3 & Origin,
const FVec3 & Axis,
const FReal Radius1,
const FReal Radius2,
const FReal Height,
const int32 NumPoints,
const int32 SpiralSeed
)