Table of Contents

Class Cylinder

Namespace
Stride.Particles.Updaters.FieldShapes
Assembly
Stride.Particles.dll
[DataContract("FieldShapeCylinder")]
public class Cylinder : FieldShape
Inheritance
Cylinder

Properties

HalfHeight

The maximum distance from the origin along the Y axis. The height is twice as big.

[DataMember(10)]
[Display("Half height", null)]
public float HalfHeight { get; set; }

Property Value

float

Radius

The maximum distance from the central axis.

[DataMember(20)]
[Display("Radius", null)]
public float Radius { get; set; }

Property Value

float

Methods

GetDebugDrawShape(out Vector3, out Quaternion, out Vector3)

public override DebugDrawShape GetDebugDrawShape(out Vector3 pos, out Quaternion rot, out Vector3 scl)

Parameters

pos Vector3
rot Quaternion
scl Vector3

Returns

DebugDrawShape

GetDistanceToCenter(Vector3, Vector3, out Vector3, out Vector3, out Vector3)

public override float GetDistanceToCenter(Vector3 particlePosition, Vector3 particleVelocity, out Vector3 alongAxis, out Vector3 aroundAxis, out Vector3 awayAxis)

Parameters

particlePosition Vector3
particleVelocity Vector3
alongAxis Vector3
aroundAxis Vector3
awayAxis Vector3

Returns

float

IsPointInside(Vector3, out Vector3, out Vector3)

public override bool IsPointInside(Vector3 particlePosition, out Vector3 surfacePoint, out Vector3 surfaceNormal)

Parameters

particlePosition Vector3
surfacePoint Vector3
surfaceNormal Vector3

Returns

bool

PreUpdateField(Vector3, Quaternion, Vector3)

public override void PreUpdateField(Vector3 position, Quaternion rotation, Vector3 size)

Parameters

position Vector3
rotation Quaternion
size Vector3