Instance Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
setPointPinned(pointIndex:pinned:attachmentPath:)
Sets the pinned state of a surface vertex. When set to true
, the optional attachmentPath
can define a Node3D
the pinned vertex will be attached to.
final func setPointPinned(pointIndex: Int32, pinned: Bool, attachmentPath: NodePath = NodePath(""))
Other members in extension
Types
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.