class MAGES::MeshDeformations::RopeRenderer

Overview

Renders a MAGES.MeshDeformations.RopeActor with a cylindrical mesh. More…

class RopeRenderer: public MonoBehaviour
{
public:
    // structs

    struct CalculateRopeSegmentSpans;
    struct CreateMeshJob;
    struct CreateSmoothPath;
    struct RopeSpanInfo;

    // properties

    float Thickness;
    int SmoothingPointsPerSegment;
    int Slices;
    bool GenerateEndCaps;
    uint RenderingLayerMask;
    ShadowCastingMode CastShadows;
    bool ReceiveShadows;
    Material Material;
};

Detailed Documentation

Renders a MAGES.MeshDeformations.RopeActor with a cylindrical mesh.

Properties

float Thickness

Gets or sets the rope thickness.

int SmoothingPointsPerSegment

Gets or sets the number of smoothing points to be generated between two consecutive particles.

int Slices

Gets or sets the number of cylindrical slices to be generated.

bool GenerateEndCaps

Gets or sets a value indicating whether we should generate end caps for the rope.

uint RenderingLayerMask

Gets or sets the rendering layer mask.

ShadowCastingMode CastShadows

Gets or sets the Shadow Casting Mode.

bool ReceiveShadows

Gets or sets a value indicating whether the rope should receive shadows.

Material Material

Gets or sets the rope’s material.