Documentation ¶
Overview ¶
Package PhysicsDirectBodyState2DExtension provides methods for working with PhysicsDirectBodyState2DExtension object instances.
Index ¶
- type Advanced
- type Any
- type Implementation
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsPhysicsDirectBodyState2D() PhysicsDirectBodyState2D.Instance
- func (self Instance) AsPhysicsDirectBodyState2DExtension() Instance
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type Interface
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 Implementation ¶
type Implementation = implementation
Implementation implements Interface with empty methods.
type Instance ¶
type Instance [1]gdclass.PhysicsDirectBodyState2DExtension
This class extends [PhysicsDirectBodyState2D] by providing additional virtual methods that can be overridden. When these methods are overridden, they will be called instead of the internal methods of the physics server. Intended for use with GDExtension to create custom implementations of [PhysicsDirectBodyState2D].
See [Interface] for methods that can be overridden by a [Class] that extends it.
%!(EXTRA string=PhysicsDirectBodyState2DExtension)
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsPhysicsDirectBodyState2D ¶
func (self Instance) AsPhysicsDirectBodyState2D() PhysicsDirectBodyState2D.Instance
func (Instance) AsPhysicsDirectBodyState2DExtension ¶
func (*Instance) UnsafePointer ¶
type Interface ¶
type Interface interface { //Implement to override the behavior of [member PhysicsDirectBodyState2D.total_gravity] and its respective getter. GetTotalGravity() Vector2.XY //Implement to override the behavior of [member PhysicsDirectBodyState2D.total_linear_damp] and its respective getter. GetTotalLinearDamp() Float.X //Implement to override the behavior of [member PhysicsDirectBodyState2D.total_angular_damp] and its respective getter. GetTotalAngularDamp() Float.X //Implement to override the behavior of [member PhysicsDirectBodyState2D.center_of_mass] and its respective getter. GetCenterOfMass() Vector2.XY //Implement to override the behavior of [member PhysicsDirectBodyState2D.center_of_mass_local] and its respective getter. GetCenterOfMassLocal() Vector2.XY //Implement to override the behavior of [member PhysicsDirectBodyState2D.inverse_mass] and its respective getter. GetInverseMass() Float.X //Implement to override the behavior of [member PhysicsDirectBodyState2D.inverse_inertia] and its respective getter. GetInverseInertia() Float.X //Implement to override the behavior of [member PhysicsDirectBodyState2D.linear_velocity] and its respective setter. SetLinearVelocity(velocity Vector2.XY) //Implement to override the behavior of [member PhysicsDirectBodyState2D.linear_velocity] and its respective getter. GetLinearVelocity() Vector2.XY //Implement to override the behavior of [member PhysicsDirectBodyState2D.angular_velocity] and its respective setter. SetAngularVelocity(velocity Float.X) //Implement to override the behavior of [member PhysicsDirectBodyState2D.angular_velocity] and its respective getter. GetAngularVelocity() Float.X //Implement to override the behavior of [member PhysicsDirectBodyState2D.transform] and its respective setter. SetTransform(transform Transform2D.OriginXY) //Implement to override the behavior of [member PhysicsDirectBodyState2D.transform] and its respective getter. GetTransform() Transform2D.OriginXY //Overridable version of [method PhysicsDirectBodyState2D.get_velocity_at_local_position]. GetVelocityAtLocalPosition(local_position Vector2.XY) Vector2.XY //Overridable version of [method PhysicsDirectBodyState2D.apply_central_impulse]. ApplyCentralImpulse(impulse Vector2.XY) //Overridable version of [method PhysicsDirectBodyState2D.apply_impulse]. ApplyImpulse(impulse Vector2.XY, position Vector2.XY) //Overridable version of [method PhysicsDirectBodyState2D.apply_torque_impulse]. ApplyTorqueImpulse(impulse Float.X) //Overridable version of [method PhysicsDirectBodyState2D.apply_central_force]. ApplyCentralForce(force Vector2.XY) //Overridable version of [method PhysicsDirectBodyState2D.apply_force]. ApplyForce(force Vector2.XY, position Vector2.XY) //Overridable version of [method PhysicsDirectBodyState2D.apply_torque]. ApplyTorque(torque Float.X) //Overridable version of [method PhysicsDirectBodyState2D.add_constant_central_force]. AddConstantCentralForce(force Vector2.XY) //Overridable version of [method PhysicsDirectBodyState2D.add_constant_force]. AddConstantForce(force Vector2.XY, position Vector2.XY) //Overridable version of [method PhysicsDirectBodyState2D.add_constant_torque]. AddConstantTorque(torque Float.X) //Overridable version of [method PhysicsDirectBodyState2D.set_constant_force]. SetConstantForce(force Vector2.XY) //Overridable version of [method PhysicsDirectBodyState2D.get_constant_force]. GetConstantForce() Vector2.XY //Overridable version of [method PhysicsDirectBodyState2D.set_constant_torque]. SetConstantTorque(torque Float.X) //Overridable version of [method PhysicsDirectBodyState2D.get_constant_torque]. GetConstantTorque() Float.X //Implement to override the behavior of [member PhysicsDirectBodyState2D.sleeping] and its respective setter. SetSleepState(enabled bool) //Implement to override the behavior of [member PhysicsDirectBodyState2D.sleeping] and its respective getter. IsSleeping() bool //Overridable version of [method PhysicsDirectBodyState2D.get_contact_count]. GetContactCount() int //Overridable version of [method PhysicsDirectBodyState2D.get_contact_local_position]. GetContactLocalPosition(contact_idx int) Vector2.XY //Overridable version of [method PhysicsDirectBodyState2D.get_contact_local_normal]. GetContactLocalNormal(contact_idx int) Vector2.XY //Overridable version of [method PhysicsDirectBodyState2D.get_contact_local_shape]. GetContactLocalShape(contact_idx int) int //Overridable version of [method PhysicsDirectBodyState2D.get_contact_local_velocity_at_position]. GetContactLocalVelocityAtPosition(contact_idx int) Vector2.XY //Overridable version of [method PhysicsDirectBodyState2D.get_contact_collider]. GetContactCollider(contact_idx int) RID.Any //Overridable version of [method PhysicsDirectBodyState2D.get_contact_collider_position]. GetContactColliderPosition(contact_idx int) Vector2.XY //Overridable version of [method PhysicsDirectBodyState2D.get_contact_collider_id]. GetContactColliderId(contact_idx int) int //Overridable version of [method PhysicsDirectBodyState2D.get_contact_collider_object]. GetContactColliderObject(contact_idx int) Object.Instance //Overridable version of [method PhysicsDirectBodyState2D.get_contact_collider_shape]. GetContactColliderShape(contact_idx int) int //Overridable version of [method PhysicsDirectBodyState2D.get_contact_collider_velocity_at_position]. GetContactColliderVelocityAtPosition(contact_idx int) Vector2.XY //Overridable version of [method PhysicsDirectBodyState2D.get_contact_impulse]. GetContactImpulse(contact_idx int) Vector2.XY //Implement to override the behavior of [member PhysicsDirectBodyState2D.step] and its respective getter. GetStep() Float.X //Overridable version of [method PhysicsDirectBodyState2D.integrate_forces]. IntegrateForces() //Overridable version of [method PhysicsDirectBodyState2D.get_space_state]. GetSpaceState() [1]gdclass.PhysicsDirectSpaceState2D }