GpuParticlesCollisionBox3D
A box-shaped 3D particle collision shape affecting GPUParticles3D nodes.
A box-shaped 3D particle collision shape affecting GpuParticles3D nodes.
A box-shaped 3D particle collision shape affecting GpuParticles3D nodes.
Particle collision shapes work in real-time and can be moved, rotated and scaled during gameplay. Unlike attractors, non-uniform scaling of collision shapes is not supported.
Note: ParticleProcessMaterial.CollisionMode must be ParticleProcessMaterial.CollisionModeEnum.Rigid or ParticleProcessMaterial.CollisionModeEnum.HideOnContact on the GpuParticles3D's process material for collision to work.
Note: Particle collision only affects GpuParticles3D, not CpuParticles3D.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
GpuParticlesCollisionBox3DConstructor
public GpuParticlesCollisionBox3D();Properties1
SizeProperty
public Vector3 Size { get; set; }Full local box dimensions, not half extents. At unit transform scale, Size (4, 0.2, 4) specifies those obstacle dimensions. GPU-particle collision geometry, not a visible mesh or gameplay CollisionShape3D.
Methods2
GetSizeVector3
public Vector3 GetSize();Returns Size. Full local box dimensions, not half extents. At unit transform scale, Size (4, 0.2, 4) specifies those obstacle dimensions. GPU-particle collision geometry, not a visible mesh or gameplay CollisionShape3D.
Vector3Current Size value; account for the described units and scope.
SetSizevoid
public void SetSize(Vector3 size);Sets Size. Full local box dimensions, not half extents. At unit transform scale, Size (4, 0.2, 4) specifies those obstacle dimensions. GPU-particle collision geometry, not a visible mesh or gameplay CollisionShape3D.
| Name | Type | Default |
|---|---|---|
size | Vector3 | — |
sizeFull local box dimensions, not half extents. At unit transform scale, Size (4, 0.2, 4) specifies those obstacle dimensions. GPU-particle collision geometry, not a visible mesh or gameplay CollisionShape3D.