Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
UpdateMode
GPUParticlesCollisionHeightField3D.swift:53enum UpdateMode
Cases
case whenMoved
Only update the heightmap when the
GPUParticlesCollisionHeightField3D
node is moved, or when the camera moves iffollowCameraEnabled
istrue
. An update can be forced by slightly moving theGPUParticlesCollisionHeightField3D
in any direction, or by callingparticlesCollisionHeightFieldUpdate(particlesCollision:)
.case always
Update the heightmap every frame. This has a significant performance cost. This update should only be used when geometry that particles can collide with changes significantly during gameplay.
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.