Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PhysicsPointQueryParameters2D
繼承: RefCounted < Object
為 PhysicsDirectSpaceState2D.intersect_point() 提供參數。
說明
通過修改這個物件的點位置等屬性,你可以為 PhysicsDirectSpaceState2D.intersect_point() 配置參數。
屬性
|
||
|
||
|
||
|
||
|
||
|
屬性說明
如果與 0 不同,則將查詢限制為由其實例 ID 指定的特定畫布層。請參閱 Object.get_instance_id()。
如果為 0,則將查詢限制為視口的預設畫布層。
bool collide_with_areas = false 🔗
如果為 true,查詢將考慮 Area2D。
bool collide_with_bodies = true 🔗
如果為 true,查詢將考慮 PhysicsBody2D。
int collision_mask = 4294967295 🔗
查詢將偵測的實體層(作為位元遮罩)。預設情況下,會偵測所有碰撞層。有關詳細信息,請參閱文件中的 《碰撞層和遮罩》。
The list of object RIDs that will be excluded from collisions. Use CollisionObject2D.get_rid() to get the RID associated with a CollisionObject2D-derived node.
Note: The returned array is copied and any changes to it will not update the original property value. To update the value you need to modify the returned array, and then assign it to the property again.
Vector2 position = Vector2(0, 0) 🔗
要查詢的位置,使用全域座標。