PhysicsDirectSpaceState3DExtension
繼承: PhysicsDirectSpaceState3D < Object
提供能夠覆蓋的虛方法,用於建立自訂的 PhysicsDirectSpaceState3D 實作。
說明
這個類擴充自 PhysicsDirectSpaceState3D,額外提供了可覆蓋的虛方法。呼叫時會使用這些覆蓋後的方法代替物理伺服器中的內部方法。
旨在用於 GDExtension,用於建立 PhysicsDirectSpaceState3D 的自訂實作。
方法
_cast_motion(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, closest_safe: |
|
_collide_shape(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, results: |
|
_get_closest_point_to_object_volume(object: RID, point: Vector3) virtual required const |
|
_intersect_point(position: Vector3, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, results: |
|
_intersect_ray(from: Vector3, to: Vector3, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, hit_from_inside: bool, hit_back_faces: bool, pick_ray: bool, result: |
|
_intersect_shape(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, result_count: |
|
_rest_info(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, rest_info: |
|
is_body_excluded_from_query(body: RID) const |
方法說明
bool _cast_motion(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, closest_safe: float*, closest_unsafe: float*, info: PhysicsServer3DExtensionShapeRestInfo*) virtual required 🔗
There is currently no description for this method. Please help us by contributing one!
bool _collide_shape(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, results: void*, max_results: int, result_count: int32_t*) virtual required 🔗
There is currently no description for this method. Please help us by contributing one!
Vector3 _get_closest_point_to_object_volume(object: RID, point: Vector3) virtual required const 🔗
There is currently no description for this method. Please help us by contributing one!
int _intersect_point(position: Vector3, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, results: PhysicsServer3DExtensionShapeResult*, max_results: int) virtual required 🔗
There is currently no description for this method. Please help us by contributing one!
bool _intersect_ray(from: Vector3, to: Vector3, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, hit_from_inside: bool, hit_back_faces: bool, pick_ray: bool, result: PhysicsServer3DExtensionRayResult*) virtual required 🔗
There is currently no description for this method. Please help us by contributing one!
int _intersect_shape(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, result_count: PhysicsServer3DExtensionShapeResult*, max_results: int) virtual required 🔗
There is currently no description for this method. Please help us by contributing one!
bool _rest_info(shape_rid: RID, transform: Transform3D, motion: Vector3, margin: float, collision_mask: int, collide_with_bodies: bool, collide_with_areas: bool, rest_info: PhysicsServer3DExtensionShapeRestInfo*) virtual required 🔗
There is currently no description for this method. Please help us by contributing one!
bool is_body_excluded_from_query(body: RID) const 🔗
There is currently no description for this method. Please help us by contributing one!