Documentation
¶
Overview ¶
Package PhysicsRayQueryParameters2D provides methods for working with PhysicsRayQueryParameters2D object instances.
Index ¶
- func Create(from Vector2.XY, to Vector2.XY) [1]gdclass.PhysicsRayQueryParameters2D
- type Advanced
- type Any
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsPhysicsRayQueryParameters2D() Instance
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) CollideWithAreas() bool
- func (self Instance) CollideWithBodies() bool
- func (self Instance) CollisionMask() int
- func (self Instance) Exclude() []RID.Any
- func (self Instance) From() Vector2.XY
- func (self Instance) HitFromInside() bool
- func (self Instance) SetCollideWithAreas(value bool)
- func (self Instance) SetCollideWithBodies(value bool)
- func (self Instance) SetCollisionMask(value int)
- func (self Instance) SetExclude(value []RID.Any)
- func (self Instance) SetFrom(value Vector2.XY)
- func (self Instance) SetHitFromInside(value bool)
- func (self Instance) SetTo(value Vector2.XY)
- func (self Instance) To() Vector2.XY
- 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 ¶
func Create ¶
Returns a new, pre-configured [PhysicsRayQueryParameters2D] object. Use it to quickly create query parameters using the most common options. [codeblock] var query = PhysicsRayQueryParameters2D.create(global_position, global_position + Vector2(0, 100)) var collision = get_world_2d().direct_space_state.intersect_ray(query) [/codeblock]
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.PhysicsRayQueryParameters2D
By changing various properties of this object, such as the ray position, you can configure the parameters for [method PhysicsDirectSpaceState2D.intersect_ray].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsPhysicsRayQueryParameters2D ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted