Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
springLength
The maximum extent of the SpringArm3D. This is used as a length for both the ray and the shape cast used internally to calculate the desired position of the SpringArm3D’s child nodes.
SpringArm3D.swift:47final var springLength: Double { get set }
To know more about how to perform a shape cast or a ray cast, please consult the PhysicsDirectSpaceState3D
documentation.
Other members in extension
Type members
Instance members
var collisionMask: UInt32
The layers against which the collision check shall be done. See Collision layers and masks in the documentation for more information.
var margin: Double
When the collision check is made, a candidate length for the SpringArm3D is given.
var shape: Shape3D?
The
Shape3D
to use for the SpringArm3D.func addExcludedObject(rid: RID
) Adds the
PhysicsBody3D
object with the givenRID
to the list ofPhysicsBody3D
objects excluded from the collision check.func clearExcludedObjects(
) Clears the list of
PhysicsBody3D
objects excluded from the collision check.func getHitLength(
) -> Double Returns the spring arm’s current length.
func removeExcludedObject(rid: RID
) -> Bool Removes the given
RID
from the list ofPhysicsBody3D
objects excluded from the collision check.