Cube Class
Namespace: Stride.Particles.Updaters.FieldShapes
Assembly: Stride.Particles.dll
Derived from Cube:
[DataContract("FieldShapeCube")]
public class Cube : FieldShape
| Name |
Description |
| Properties
|
|
|
HalfSideX |
The maximum distance from the origin along the X axis. The X side is twice as big.
|
|
|
HalfSideY |
The maximum distance from the origin along the Y axis. The Y side is twice as big.
|
|
|
HalfSideZ |
The maximum distance from the origin along the Z axis. The Z side is twice as big.
|
| Methods
|
|
|
GetDebugDrawShape(out Vector3, out Quaternion, out Vector3) |
|
|
|
GetDistanceToCenter(Vector3, Vector3, out Vector3, out Vector3, out Vector3) |
|
|
|
IsPointInside(Vector3, out Vector3, out Vector3) |
|
|
|
PreUpdateField(Vector3, Quaternion, Vector3) |
|
|
Improve this Doc
View Source
Properties
HalfSideX
The maximum distance from the origin along the X axis. The X side is twice as big.
[DataMember(10)]
[DataMemberRange(0, 3)]
[Display("Half X", null)]
public float HalfSideX { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
HalfSideY
The maximum distance from the origin along the Y axis. The Y side is twice as big.
[DataMember(20)]
[DataMemberRange(0, 3)]
[Display("Half Y", null)]
public float HalfSideY { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
HalfSideZ
The maximum distance from the origin along the Z axis. The Z side is twice as big.
[DataMember(30)]
[DataMemberRange(0, 3)]
[Display("Half Z", null)]
public float HalfSideZ { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
|
Improve this Doc
View Source
Methods
GetDebugDrawShape(out Vector3, out Quaternion, out Vector3)
public override DebugDrawShape GetDebugDrawShape(out Vector3 pos, out Quaternion rot, out Vector3 scl)
Parameters
Returns
Overrides
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
Returns
| Type |
Description |
| System.Single |
|
Overrides
IsPointInside(Vector3, out Vector3, out Vector3)
public override bool IsPointInside(Vector3 particlePosition, out Vector3 surfacePoint, out Vector3 surfaceNormal)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
PreUpdateField(Vector3, Quaternion, Vector3)
public override void PreUpdateField(Vector3 position, Quaternion rotation, Vector3 size)
Parameters
Overrides
Extension Methods