Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
bone2dNodepath
The NodePath
to the Bone2D
that this PhysicalBone2D
should simulate.
final var bone2dNodepath: NodePath { get set }
Other members in extension
Type members
Instance members
var autoConfigureJoint: Bool
If
true
, thePhysicalBone2D
will automatically configure the firstJoint2D
child node. The automatic configuration is limited to setting up the node properties and positioning theJoint2D
.var bone2dIndex: Int32
The index of the
Bone2D
that thisPhysicalBone2D
should simulate.var followBoneWhenSimulating: Bool
If
true
, thePhysicalBone2D
will keep the transform of the bone it is bound to when simulating physics.var simulatePhysics: Bool
If
true
, thePhysicalBone2D
will start simulating using physics. Iffalse
, thePhysicalBone2D
will follow the transform of theBone2D
node.func getJoint(
) -> Joint2D? Returns the first
Joint2D
child node, if one exists. This is mainly a helper function to make it easier to get theJoint2D
that thePhysicalBone2D
is autoconfiguring.func isSimulatingPhysics(
) -> Bool Returns a boolean that indicates whether the
PhysicalBone2D
is running and simulating using the Godot 2D physics engine. Whentrue
, the PhysicalBone2D node is using physics.