Documentation
¶
Overview ¶
Package SpringArm3D provides methods for working with SpringArm3D object instances.
Index ¶
- type Advanced
- type Any
- type Extension
- type ID
- type Instance
- func (self Instance) AddExcludedObject(rid RID.Body3D)
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsSpringArm3D() Instance
- func (self Instance) ClearExcludedObjects()
- func (self Instance) CollisionMask() int
- func (self Instance) GetHitLength() Float.X
- func (self Instance) ID() ID
- func (self Instance) Margin() Float.X
- func (self Instance) RemoveExcludedObject(rid RID.Body3D) bool
- func (self Instance) SetCollisionMask(value int)
- func (self Instance) SetMargin(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetShape(value Shape3D.Instance)
- func (self Instance) SetSpringLength(value Float.X)
- func (self Instance) Shape() Shape3D.Instance
- func (self Instance) SpringLength() Float.X
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsSpringArm3D ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.SpringArm3D
[SpringArm3D] casts a ray or a shape along its Z axis and moves all its direct children to the collision point, with an optional margin. This is useful for 3rd person cameras that move closer to the player when inside a tight space (you may need to exclude the player's collider from the [SpringArm3D]'s collision check).
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AddExcludedObject ¶
Adds the [PhysicsBody3D] object with the given [RID] to the list of [PhysicsBody3D] objects excluded from the collision check.
func (Instance) AsSpringArm3D ¶
func (Instance) ClearExcludedObjects ¶
func (self Instance) ClearExcludedObjects()
Clears the list of [PhysicsBody3D] objects excluded from the collision check.
func (Instance) CollisionMask ¶
func (Instance) GetHitLength ¶
Returns the spring arm's current length.
func (Instance) RemoveExcludedObject ¶
Removes the given [RID] from the list of [PhysicsBody3D] objects excluded from the collision check.