Documentation
¶
Overview ¶
Package PhysicsMaterial provides methods for working with PhysicsMaterial object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) Absorbent() bool
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsPhysicsMaterial() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) Bounce() Float.X
- func (self Instance) Friction() Float.X
- func (self Instance) Rough() bool
- func (self Instance) SetAbsorbent(value bool)
- func (self Instance) SetBounce(value Float.X)
- func (self Instance) SetFriction(value Float.X)
- func (self Instance) SetRough(value bool)
- func (self *Instance) UnsafePointer() unsafe.Pointer
- 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 Instance ¶
type Instance [1]gdclass.PhysicsMaterial
Holds physics-related properties of a surface, namely its roughness and bounciness. This class is used to apply these properties to a physics body.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsPhysicsMaterial ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) SetAbsorbent ¶
func (Instance) SetFriction ¶
func (*Instance) UnsafePointer ¶
Click to show internal directories.
Click to hide internal directories.