Documentation
¶
Overview ¶
A capsule shape collision that interacts with SpringBoneSimulator3D.
Index ¶
- type Advanced
- type Any
- type Extension
- func (self *Extension[T]) AsNode() Node.Instance
- func (self *Extension[T]) AsNode3D() Node3D.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsSpringBoneCollision3D() SpringBoneCollision3D.Instance
- func (self *Extension[T]) AsSpringBoneCollisionCapsule3D() Instance
- type ID
- type Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsSpringBoneCollision3D() SpringBoneCollision3D.Instance
- func (self Instance) AsSpringBoneCollisionCapsule3D() Instance
- func (self Instance) Height() Float.X
- func (self Instance) ID() ID
- func (self Instance) Inside() bool
- func (self Instance) MidHeight() Float.X
- func (self Instance) Radius() Float.X
- func (self Instance) SetHeight(value Float.X)
- func (self Instance) SetInside(value bool)
- func (self Instance) SetMidHeight(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetRadius(value 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]) AsSpringBoneCollision3D ¶
func (self *Extension[T]) AsSpringBoneCollision3D() SpringBoneCollision3D.Instance
func (*Extension[T]) AsSpringBoneCollisionCapsule3D ¶
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.SpringBoneCollisionCapsule3D
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsSpringBoneCollision3D ¶
func (self Instance) AsSpringBoneCollision3D() SpringBoneCollision3D.Instance
func (Instance) AsSpringBoneCollisionCapsule3D ¶
func (Instance) Height ¶
The capsule's full height, including the hemispheres.
Note: The Height of a capsule must be at least twice its Radius. Otherwise, the capsule becomes a sphere. If the Height is less than twice the Radius, the properties adjust to a valid value.
func (Instance) MidHeight ¶
The capsule's height, excluding the hemispheres. This is the height of the central cylindrical part in the middle of the capsule, and is the distance between the centers of the two hemispheres. This is a wrapper for Height.
func (Instance) Radius ¶
The capsule's radius.
Note: The Radius of a capsule cannot be greater than half of its Height. Otherwise, the capsule becomes a sphere. If the Radius is greater than half of the Height, the properties adjust to a valid value.
func (Instance) SetMidHeight ¶
SetMidHeight sets the property returned by [GetMidHeight].