reckfellENGINE

TubeTrailMesh

Represents a straight tube-shaped PrimitiveMesh with variable width.

On this page
class TubeTrailMeshReckfellSharpInherits PrimitiveMesh

Represents a straight tube-shaped PrimitiveMesh with variable width.

TubeTrailMesh represents a straight tube-shaped mesh with variable width. The tube is composed of a number of cylindrical sections, each with the same TubeTrailMesh.SectionLength and number of TubeTrailMesh.SectionRings. A TubeTrailMesh.Curve is sampled along the total length of the tube, meaning that the curve determines the radius of the tube along its length. This primitive mesh is usually used for particle trails.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

TubeTrailMeshConstructor
# TubeTrailMesh
C#
public TubeTrailMesh();

Properties8

CapBottomProperty
# CapBottom
C#
public bool CapBottom { get; set; }

Adds tube bottom-cap geometry. Affects mesh geometry, not particle completion or history duration.

CapTopProperty
# CapTop
C#
public bool CapTop { get; set; }

Adds tube top-cap geometry. Does not enable history, set alpha mode or automatically repair incompatible poses.

CurveProperty
# Curve
C#
public Curve Curve { get; set; }

Radius profile along the generated tube. Not a motion curve; final deformation also requires compatible poses and a trail material.

RadialStepsProperty
# RadialSteps
C#
public int RadialSteps { get; set; }

Tube circumference subdivisions, 3 to 128. Increase vertex count, not the number of temporal history samples.

RadiusProperty
# Radius
C#
public float Radius { get; set; }

Tube cross-section radius, additionally modulated by Curve. Not TrailLifetime duration or particle collision radius.

SectionLengthProperty
# SectionLength
C#
public float SectionLength { get; set; }

Rest-geometry section length. Sections times SectionLength describes the rest mesh, not guaranteed final deformed-history length.

SectionRingsProperty
# SectionRings
C#
public int SectionRings { get; set; }

Subdivision rings within each section, 1 to 1024. Add shape/profile geometry, not simulation or collision steps.

SectionsProperty
# Sections
C#
public int Sections { get; set; }

Rest-tube sections and built-in pose layout, 2 to 128. Not a universal control of final world-space trail length.

Methods16

GetCurveCurve
# GetCurve
C#
public Curve GetCurve();

Returns Curve. Radius profile along the generated tube. Not a motion curve; final deformation also requires compatible poses and a trail material.

Returns Curve

Current Curve value; account for units and the setting/effective-result distinction.

GetRadialStepsint
# GetRadialSteps
C#
public int GetRadialSteps();

Returns RadialSteps. Tube circumference subdivisions, 3 to 128. Increase vertex count, not the number of temporal history samples.

Returns int

Current RadialSteps value; account for units and the setting/effective-result distinction.

GetRadiusfloat
# GetRadius
C#
public float GetRadius();

Returns Radius. Tube cross-section radius, additionally modulated by Curve. Not TrailLifetime duration or particle collision radius.

Returns float

Current Radius value; account for units and the setting/effective-result distinction.

GetSectionLengthfloat
# GetSectionLength
C#
public float GetSectionLength();

Returns SectionLength. Rest-geometry section length. Sections times SectionLength describes the rest mesh, not guaranteed final deformed-history length.

Returns float

Current SectionLength value; account for units and the setting/effective-result distinction.

GetSectionRingsint
# GetSectionRings
C#
public int GetSectionRings();

Returns SectionRings. Subdivision rings within each section, 1 to 1024. Add shape/profile geometry, not simulation or collision steps.

Returns int

Current SectionRings value; account for units and the setting/effective-result distinction.

GetSectionsint
# GetSections
C#
public int GetSections();

Returns Sections. Rest-tube sections and built-in pose layout, 2 to 128. Not a universal control of final world-space trail length.

Returns int

Current Sections value; account for units and the setting/effective-result distinction.

IsCapBottombool
# IsCapBottom
C#
public bool IsCapBottom();
Returns bool
IsCapTopbool
# IsCapTop
C#
public bool IsCapTop();
Returns bool
SetCapBottomvoid
# SetCapBottom
C#
public void SetCapBottom(bool capBottom);
Parameters
NameTypeDefault
capBottombool—
SetCapTopvoid
# SetCapTop
C#
public void SetCapTop(bool capTop);
Parameters
NameTypeDefault
capTopbool—
SetCurvevoid
# SetCurve
C#
public void SetCurve(Curve curve);

Sets Curve. Radius profile along the generated tube. Not a motion curve; final deformation also requires compatible poses and a trail material.

Parameters
NameTypeDefault
curveCurve—
curve

Radius profile along the generated tube. Not a motion curve; final deformation also requires compatible poses and a trail material.

SetRadialStepsvoid
# SetRadialSteps
C#
public void SetRadialSteps(int radialSteps);

Sets RadialSteps. Tube circumference subdivisions, 3 to 128. Increase vertex count, not the number of temporal history samples.

Parameters
NameTypeDefault
radialStepsint—
radialSteps

Tube circumference subdivisions, 3 to 128. Increase vertex count, not the number of temporal history samples.

SetRadiusvoid
# SetRadius
C#
public void SetRadius(float radius);

Sets Radius. Tube cross-section radius, additionally modulated by Curve. Not TrailLifetime duration or particle collision radius.

Parameters
NameTypeDefault
radiusfloat—
radius

Tube cross-section radius, additionally modulated by Curve. Not TrailLifetime duration or particle collision radius.

SetSectionLengthvoid
# SetSectionLength
C#
public void SetSectionLength(float sectionLength);

Sets SectionLength. Rest-geometry section length. Sections times SectionLength describes the rest mesh, not guaranteed final deformed-history length.

Parameters
NameTypeDefault
sectionLengthfloat—
sectionLength

Rest-geometry section length. Sections times SectionLength describes the rest mesh, not guaranteed final deformed-history length.

SetSectionRingsvoid
# SetSectionRings
C#
public void SetSectionRings(int sectionRings);

Sets SectionRings. Subdivision rings within each section, 1 to 1024. Add shape/profile geometry, not simulation or collision steps.

Parameters
NameTypeDefault
sectionRingsint—
sectionRings

Subdivision rings within each section, 1 to 1024. Add shape/profile geometry, not simulation or collision steps.

SetSectionsvoid
# SetSections
C#
public void SetSections(int sections);

Sets Sections. Rest-tube sections and built-in pose layout, 2 to 128. Not a universal control of final world-space trail length.

Parameters
NameTypeDefault
sectionsint—
sections

Rest-tube sections and built-in pose layout, 2 to 128. Not a universal control of final world-space trail length.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.