Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Resolution
GPUParticlesCollisionHeightField3D.swift:22enum Resolution
Cases
case resolution256
Generate a 256×256 heightmap. Intended for small-scale scenes, or larger scenes with no distant particles.
case resolution512
Generate a 512×512 heightmap. Intended for medium-scale scenes, or larger scenes with no distant particles.
case resolution1024
Generate a 1024×1024 heightmap. Intended for large scenes with distant particles.
case resolution2048
Generate a 2048×2048 heightmap. Intended for very large scenes with distant particles.
case resolution4096
Generate a 4096×4096 heightmap. Intended for huge scenes with distant particles.
case resolution8192
Generate a 8192×8192 heightmap. Intended for gigantic scenes with distant particles.
case max
Represents the size of the
Resolution
enum.
Other members in extension
Types
Type members
Instance members
var followCameraEnabled: Bool
If
true
, theGPUParticlesCollisionHeightField3D
will follow the current camera in global space. TheGPUParticlesCollisionHeightField3D
does not need to be a child of theCamera3D
node for this to work.var resolution: GPUParticlesCollisionHeightField3D.Resolution
Higher resolutions can represent small details more accurately in large scenes, at the cost of lower performance. If
updateMode
is .always, consider using the lowest resolution possible.var size: Vector3
The collision heightmap’s size in 3D units. To improve heightmap quality,
size
should be set as small as possible while covering the parts of the scene you need.var updateMode: GPUParticlesCollisionHeightField3D.UpdateMode
The update policy to use for the generated heightmap.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.