Class BodyProfile
- Namespace
- S1MAPI.ProceduralMesh.Generators.Organic
- Assembly
- S1MAPI_Mono.dll
Defines the shape profile for a segmented organic body. Reference implementation for creating organic shapes like animal bodies.
public class BodyProfile
- Inheritance
-
BodyProfile
- Inherited Members
Remarks
This is a reference implementation provided as an example. For custom organic shapes, inherit from OrganicShapeGenerator and implement your own generation logic.
Constructors
BodyProfile(RingProfile[], int)
Create a custom body profile
public BodyProfile(RingProfile[] rings, int ringSegments = 8)
Parameters
ringsRingProfile[]Array of ring profiles
ringSegmentsintNumber of segments per ring
Properties
Cylindrical
Simple cylindrical body profile
public static BodyProfile Cylindrical { get; }
Property Value
DefaultDogBody
Default dog body profile (front to tail)
public static BodyProfile DefaultDogBody { get; }
Property Value
RingSegments
Number of vertices per ring (default 8)
public int RingSegments { get; set; }
Property Value
Rings
Array of ring profiles defining the body shape Each Vector4 contains: (z-position, widthScale, heightScaleTop, heightScaleBottom, asymmetry)
public RingProfile[] Rings { get; set; }
Property Value
Tapered
Tapered body profile (wider at front, narrow at back)
public static BodyProfile Tapered { get; }