Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
DisableMode
SoftBody3D.swift:16enum DisableMode
Cases
case remove
When
processMode
is set todisabled
, remove from the physics simulation to stop all physics interactions with thisSoftBody3D
.case keepActive
When
processMode
is set todisabled
, do not affect the physics simulation.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (23) members.
Type members
Instance members
var collisionLayer: UInt32
The physics layers this SoftBody3D is in. Collision objects can exist in one or more of 32 different layers. See also
collisionMask
.var collisionMask: UInt32
The physics layers this SoftBody3D scans. Collision objects can scan one or more of 32 different layers. See also
collisionLayer
.var dampingCoefficient: Double
var disableMode: SoftBody3D.DisableMode
Defines the behavior in physics when
processMode
is set todisabled
. SeeDisableMode
for more details about the different modes.var dragCoefficient: Double
var linearStiffness: Double
Higher values will result in a stiffer body, while lower values will increase the body’s ability to bend. The value can be between
0.0
and1.0
(inclusive).var parentCollisionIgnore: NodePath
NodePath
to aCollisionObject3D
this SoftBody3D should avoid clipping.var pressureCoefficient: Double
var rayPickable: Bool
If
true
, theSoftBody3D
will respond toRayCast3D
s.var simulationPrecision: Int32
Increasing this value will improve the resulting simulation, but can affect performance. Use with care.
var totalMass: Double
The SoftBody3D’s mass.
func addCollisionExceptionWith(body: Node?
) Adds a body to the list of bodies that this body can’t collide with.
func getCollisionExceptions(
) -> ObjectCollection<PhysicsBody3D> Returns an array of nodes that were added as collision exceptions for this body.
func getCollisionLayerValue(layerNumber: Int32
) -> Bool Returns whether or not the specified layer of the
collisionLayer
is enabled, given alayerNumber
between 1 and 32.func getCollisionMaskValue(layerNumber: Int32
) -> Bool Returns whether or not the specified layer of the
collisionMask
is enabled, given alayerNumber
between 1 and 32.func getPhysicsRid(
) -> RID func getPointTransform(pointIndex: Int32
) -> Vector3 Returns local translation of a vertex in the surface array.
func isPointPinned(pointIndex: Int32
) -> Bool Returns
true
if vertex is set to pinned.func removeCollisionExceptionWith(body: Node?
) Removes a body from the list of bodies that this body can’t collide with.
func setCollisionLayerValue(layerNumber: Int32, value: Bool
) Based on
value
, enables or disables the specified layer in thecollisionLayer
, given alayerNumber
between 1 and 32.func setCollisionMaskValue(layerNumber: Int32, value: Bool
) Based on
value
, enables or disables the specified layer in thecollisionMask
, given alayerNumber
between 1 and 32.func setPointPinned(pointIndex: Int32, pinned: Bool, attachmentPath: NodePath
) Sets the pinned state of a surface vertex. When set to
true
, the optionalattachmentPath
can define aNode3D
the pinned vertex will be attached to.
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.