SpringBoneCollisionCapsule3D

package
v0.0.0-...-357ca8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

A capsule shape collision that interacts with SpringBoneSimulator3D.

Index

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 Any

type Any interface {
	gd.IsClass
	AsSpringBoneCollisionCapsule3D() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

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]) AsNode

func (self *Extension[T]) AsNode() Node.Instance

func (*Extension[T]) AsNode3D

func (self *Extension[T]) AsNode3D() Node3D.Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsSpringBoneCollision3D

func (self *Extension[T]) AsSpringBoneCollision3D() SpringBoneCollision3D.Instance

func (*Extension[T]) AsSpringBoneCollisionCapsule3D

func (self *Extension[T]) AsSpringBoneCollisionCapsule3D() Instance

type ID

type ID Object.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.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

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 New

func New() Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsNode3D

func (self Instance) AsNode3D() Node3D.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsSpringBoneCollision3D

func (self Instance) AsSpringBoneCollision3D() SpringBoneCollision3D.Instance

func (Instance) AsSpringBoneCollisionCapsule3D

func (self Instance) AsSpringBoneCollisionCapsule3D() Instance

func (Instance) Height

func (self Instance) Height() Float.X

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) ID

func (self Instance) ID() ID

func (Instance) Inside

func (self Instance) Inside() bool

If true, the collision acts to trap the joint within the collision.

func (Instance) MidHeight

func (self Instance) MidHeight() Float.X

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

func (self Instance) Radius() Float.X

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) SetHeight

func (self Instance) SetHeight(value Float.X)

SetHeight sets the property returned by [GetHeight].

func (Instance) SetInside

func (self Instance) SetInside(value bool)

SetInside sets the property returned by [IsInside].

func (Instance) SetMidHeight

func (self Instance) SetMidHeight(value Float.X)

SetMidHeight sets the property returned by [GetMidHeight].

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetRadius

func (self Instance) SetRadius(value Float.X)

SetRadius sets the property returned by [GetRadius].

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL