PhysicsServer2DExtension

package
v0.0.0-...-d9f4d4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package PhysicsServer2DExtension provides methods for working with PhysicsServer2DExtension object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsPhysicsServer2DExtension() Instance
}

type Implementation

type Implementation = implementation

Implementation implements Interface with empty methods.

type Instance

This class extends [PhysicsServer2D] 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 [PhysicsServer2D].

See [Interface] for methods that can be overridden by a [Class] that extends it.

%!(EXTRA string=PhysicsServer2DExtension)

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsPhysicsServer2DExtension

func (self Instance) AsPhysicsServer2DExtension() Instance

func (Instance) BodyTestMotionIsExcludingBody

func (self Instance) BodyTestMotionIsExcludingBody(body RID.Body2D) bool

Returns [code]true[/code] if the body with the given [RID] is being excluded from [method _body_test_motion]. See also [method Object.get_instance_id].

func (Instance) BodyTestMotionIsExcludingObject

func (self Instance) BodyTestMotionIsExcludingObject(obj int) bool

Returns [code]true[/code] if the object with the given instance ID is being excluded from [method _body_test_motion]. See also [method Object.get_instance_id].

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

type Interface

type Interface interface {
	//Overridable version of [method PhysicsServer2D.world_boundary_shape_create].
	WorldBoundaryShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.separation_ray_shape_create].
	SeparationRayShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.segment_shape_create].
	SegmentShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.circle_shape_create].
	CircleShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.rectangle_shape_create].
	RectangleShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.capsule_shape_create].
	CapsuleShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.convex_polygon_shape_create].
	ConvexPolygonShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.concave_polygon_shape_create].
	ConcavePolygonShapeCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.shape_set_data].
	ShapeSetData(shape RID.Any, data any)
	//Should set the custom solver bias for the given [param shape]. It defines how much bodies are forced to separate on contact.
	//Overridable version of [PhysicsServer2D]'s internal [code]shape_get_custom_solver_bias[/code] method. Corresponds to [member Shape2D.custom_solver_bias].
	ShapeSetCustomSolverBias(shape RID.Any, bias Float.X)
	//Overridable version of [method PhysicsServer2D.shape_get_type].
	ShapeGetType(shape RID.Any) gdclass.PhysicsServer2DShapeType
	//Overridable version of [method PhysicsServer2D.shape_get_data].
	ShapeGetData(shape RID.Any) any
	//Should return the custom solver bias of the given [param shape], which defines how much bodies are forced to separate on contact when this shape is involved.
	//Overridable version of [PhysicsServer2D]'s internal [code]shape_get_custom_solver_bias[/code] method. Corresponds to [member Shape2D.custom_solver_bias].
	ShapeGetCustomSolverBias(shape RID.Any) Float.X
	//Given two shapes and their parameters, should return [code]true[/code] if a collision between the two would occur, with additional details passed in [param results].
	//Overridable version of [PhysicsServer2D]'s internal [code]shape_collide[/code] method. Corresponds to [method PhysicsDirectSpaceState2D.collide_shape].
	ShapeCollide(shape_A RID.Any, xform_A Transform2D.OriginXY, motion_A Vector2.XY, shape_B RID.Any, xform_B Transform2D.OriginXY, motion_B Vector2.XY, results unsafe.Pointer, result_max int, result_count *int32) bool
	//Overridable version of [method PhysicsServer2D.space_create].
	SpaceCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.space_set_active].
	SpaceSetActive(space RID.Any, active bool)
	//Overridable version of [method PhysicsServer2D.space_is_active].
	SpaceIsActive(space RID.Any) bool
	//Overridable version of [method PhysicsServer2D.space_set_param].
	SpaceSetParam(space RID.Any, param gdclass.PhysicsServer2DSpaceParameter, value Float.X)
	//Overridable version of [method PhysicsServer2D.space_get_param].
	SpaceGetParam(space RID.Any, param gdclass.PhysicsServer2DSpaceParameter) Float.X
	//Overridable version of [method PhysicsServer2D.space_get_direct_state].
	SpaceGetDirectState(space RID.Any) [1]gdclass.PhysicsDirectSpaceState2D
	//Used internally to allow the given [param space] to store contact points, up to [param max_contacts]. This is automatically set for the main [World2D]'s space when [member SceneTree.debug_collisions_hint] is [code]true[/code], or by checking "Visible Collision Shapes" in the editor. Only works in debug builds.
	//Overridable version of [PhysicsServer2D]'s internal [code]space_set_debug_contacts[/code] method.
	SpaceSetDebugContacts(space RID.Any, max_contacts int)
	//Should return the positions of all contacts that have occurred during the last physics step in the given [param space]. See also [method _space_get_contact_count] and [method _space_set_debug_contacts].
	//Overridable version of [PhysicsServer2D]'s internal [code]space_get_contacts[/code] method.
	SpaceGetContacts(space RID.Any) []Vector2.XY
	//Should return how many contacts have occurred during the last physics step in the given [param space]. See also [method _space_get_contacts] and [method _space_set_debug_contacts].
	//Overridable version of [PhysicsServer2D]'s internal [code]space_get_contact_count[/code] method.
	SpaceGetContactCount(space RID.Any) int
	//Overridable version of [method PhysicsServer2D.area_create].
	AreaCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.area_set_space].
	AreaSetSpace(area RID.Any, space RID.Any)
	//Overridable version of [method PhysicsServer2D.area_get_space].
	AreaGetSpace(area RID.Any) RID.Any
	//Overridable version of [method PhysicsServer2D.area_add_shape].
	AreaAddShape(area RID.Any, shape RID.Any, transform Transform2D.OriginXY, disabled bool)
	//Overridable version of [method PhysicsServer2D.area_set_shape].
	AreaSetShape(area RID.Any, shape_idx int, shape RID.Any)
	//Overridable version of [method PhysicsServer2D.area_set_shape_transform].
	AreaSetShapeTransform(area RID.Any, shape_idx int, transform Transform2D.OriginXY)
	//Overridable version of [method PhysicsServer2D.area_set_shape_disabled].
	AreaSetShapeDisabled(area RID.Any, shape_idx int, disabled bool)
	//Overridable version of [method PhysicsServer2D.area_get_shape_count].
	AreaGetShapeCount(area RID.Any) int
	//Overridable version of [method PhysicsServer2D.area_get_shape].
	AreaGetShape(area RID.Any, shape_idx int) RID.Any
	//Overridable version of [method PhysicsServer2D.area_get_shape_transform].
	AreaGetShapeTransform(area RID.Any, shape_idx int) Transform2D.OriginXY
	//Overridable version of [method PhysicsServer2D.area_remove_shape].
	AreaRemoveShape(area RID.Any, shape_idx int)
	//Overridable version of [method PhysicsServer2D.area_clear_shapes].
	AreaClearShapes(area RID.Any)
	//Overridable version of [method PhysicsServer2D.area_attach_object_instance_id].
	AreaAttachObjectInstanceId(area RID.Any, id int)
	//Overridable version of [method PhysicsServer2D.area_get_object_instance_id].
	AreaGetObjectInstanceId(area RID.Any) int
	//Overridable version of [method PhysicsServer2D.area_attach_canvas_instance_id].
	AreaAttachCanvasInstanceId(area RID.Any, id int)
	//Overridable version of [method PhysicsServer2D.area_get_canvas_instance_id].
	AreaGetCanvasInstanceId(area RID.Any) int
	//Overridable version of [method PhysicsServer2D.area_set_param].
	AreaSetParam(area RID.Any, param gdclass.PhysicsServer2DAreaParameter, value any)
	//Overridable version of [method PhysicsServer2D.area_set_transform].
	AreaSetTransform(area RID.Any, transform Transform2D.OriginXY)
	//Overridable version of [method PhysicsServer2D.area_get_param].
	AreaGetParam(area RID.Any, param gdclass.PhysicsServer2DAreaParameter) any
	//Overridable version of [method PhysicsServer2D.area_get_transform].
	AreaGetTransform(area RID.Any) Transform2D.OriginXY
	//Overridable version of [method PhysicsServer2D.area_set_collision_layer].
	AreaSetCollisionLayer(area RID.Any, layer int)
	//Overridable version of [method PhysicsServer2D.area_get_collision_layer].
	AreaGetCollisionLayer(area RID.Any) int
	//Overridable version of [method PhysicsServer2D.area_set_collision_mask].
	AreaSetCollisionMask(area RID.Any, mask int)
	//Overridable version of [method PhysicsServer2D.area_get_collision_mask].
	AreaGetCollisionMask(area RID.Any) int
	//Overridable version of [method PhysicsServer2D.area_set_monitorable].
	AreaSetMonitorable(area RID.Any, monitorable bool)
	//If set to [code]true[/code], allows the area with the given [RID] to detect mouse inputs when the mouse cursor is hovering on it.
	//Overridable version of [PhysicsServer2D]'s internal [code]area_set_pickable[/code] method. Corresponds to [member CollisionObject2D.input_pickable].
	AreaSetPickable(area RID.Any, pickable bool)
	//Overridable version of [method PhysicsServer2D.area_set_monitor_callback].
	AreaSetMonitorCallback(area RID.Any, callback Callable.Function)
	//Overridable version of [method PhysicsServer2D.area_set_area_monitor_callback].
	AreaSetAreaMonitorCallback(area RID.Any, callback Callable.Function)
	//Overridable version of [method PhysicsServer2D.body_create].
	BodyCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.body_set_space].
	BodySetSpace(body RID.Any, space RID.Any)
	//Overridable version of [method PhysicsServer2D.body_get_space].
	BodyGetSpace(body RID.Any) RID.Any
	//Overridable version of [method PhysicsServer2D.body_set_mode].
	BodySetMode(body RID.Any, mode gdclass.PhysicsServer2DBodyMode)
	//Overridable version of [method PhysicsServer2D.body_get_mode].
	BodyGetMode(body RID.Any) gdclass.PhysicsServer2DBodyMode
	//Overridable version of [method PhysicsServer2D.body_add_shape].
	BodyAddShape(body RID.Any, shape RID.Any, transform Transform2D.OriginXY, disabled bool)
	//Overridable version of [method PhysicsServer2D.body_set_shape].
	BodySetShape(body RID.Any, shape_idx int, shape RID.Any)
	//Overridable version of [method PhysicsServer2D.body_set_shape_transform].
	BodySetShapeTransform(body RID.Any, shape_idx int, transform Transform2D.OriginXY)
	//Overridable version of [method PhysicsServer2D.body_get_shape_count].
	BodyGetShapeCount(body RID.Any) int
	//Overridable version of [method PhysicsServer2D.body_get_shape].
	BodyGetShape(body RID.Any, shape_idx int) RID.Any
	//Overridable version of [method PhysicsServer2D.body_get_shape_transform].
	BodyGetShapeTransform(body RID.Any, shape_idx int) Transform2D.OriginXY
	//Overridable version of [method PhysicsServer2D.body_set_shape_disabled].
	BodySetShapeDisabled(body RID.Any, shape_idx int, disabled bool)
	//Overridable version of [method PhysicsServer2D.body_set_shape_as_one_way_collision].
	BodySetShapeAsOneWayCollision(body RID.Any, shape_idx int, enable bool, margin Float.X)
	//Overridable version of [method PhysicsServer2D.body_remove_shape].
	BodyRemoveShape(body RID.Any, shape_idx int)
	//Overridable version of [method PhysicsServer2D.body_clear_shapes].
	BodyClearShapes(body RID.Any)
	//Overridable version of [method PhysicsServer2D.body_attach_object_instance_id].
	BodyAttachObjectInstanceId(body RID.Any, id int)
	//Overridable version of [method PhysicsServer2D.body_get_object_instance_id].
	BodyGetObjectInstanceId(body RID.Any) int
	//Overridable version of [method PhysicsServer2D.body_attach_canvas_instance_id].
	BodyAttachCanvasInstanceId(body RID.Any, id int)
	//Overridable version of [method PhysicsServer2D.body_get_canvas_instance_id].
	BodyGetCanvasInstanceId(body RID.Any) int
	//Overridable version of [method PhysicsServer2D.body_set_continuous_collision_detection_mode].
	BodySetContinuousCollisionDetectionMode(body RID.Any, mode gdclass.PhysicsServer2DCCDMode)
	//Overridable version of [method PhysicsServer2D.body_get_continuous_collision_detection_mode].
	BodyGetContinuousCollisionDetectionMode(body RID.Any) gdclass.PhysicsServer2DCCDMode
	//Overridable version of [method PhysicsServer2D.body_set_collision_layer].
	BodySetCollisionLayer(body RID.Any, layer int)
	//Overridable version of [method PhysicsServer2D.body_get_collision_layer].
	BodyGetCollisionLayer(body RID.Any) int
	//Overridable version of [method PhysicsServer2D.body_set_collision_mask].
	BodySetCollisionMask(body RID.Any, mask int)
	//Overridable version of [method PhysicsServer2D.body_get_collision_mask].
	BodyGetCollisionMask(body RID.Any) int
	//Overridable version of [method PhysicsServer2D.body_set_collision_priority].
	BodySetCollisionPriority(body RID.Any, priority Float.X)
	//Overridable version of [method PhysicsServer2D.body_get_collision_priority].
	BodyGetCollisionPriority(body RID.Any) Float.X
	//Overridable version of [method PhysicsServer2D.body_set_param].
	BodySetParam(body RID.Any, param gdclass.PhysicsServer2DBodyParameter, value any)
	//Overridable version of [method PhysicsServer2D.body_get_param].
	BodyGetParam(body RID.Any, param gdclass.PhysicsServer2DBodyParameter) any
	//Overridable version of [method PhysicsServer2D.body_reset_mass_properties].
	BodyResetMassProperties(body RID.Any)
	//Overridable version of [method PhysicsServer2D.body_set_state].
	BodySetState(body RID.Any, state gdclass.PhysicsServer2DBodyState, value any)
	//Overridable version of [method PhysicsServer2D.body_get_state].
	BodyGetState(body RID.Any, state gdclass.PhysicsServer2DBodyState) any
	//Overridable version of [method PhysicsServer2D.body_apply_central_impulse].
	BodyApplyCentralImpulse(body RID.Any, impulse Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_apply_torque_impulse].
	BodyApplyTorqueImpulse(body RID.Any, impulse Float.X)
	//Overridable version of [method PhysicsServer2D.body_apply_impulse].
	BodyApplyImpulse(body RID.Any, impulse Vector2.XY, position Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_apply_central_force].
	BodyApplyCentralForce(body RID.Any, force Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_apply_force].
	BodyApplyForce(body RID.Any, force Vector2.XY, position Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_apply_torque].
	BodyApplyTorque(body RID.Any, torque Float.X)
	//Overridable version of [method PhysicsServer2D.body_add_constant_central_force].
	BodyAddConstantCentralForce(body RID.Any, force Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_add_constant_force].
	BodyAddConstantForce(body RID.Any, force Vector2.XY, position Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_add_constant_torque].
	BodyAddConstantTorque(body RID.Any, torque Float.X)
	//Overridable version of [method PhysicsServer2D.body_set_constant_force].
	BodySetConstantForce(body RID.Any, force Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_get_constant_force].
	BodyGetConstantForce(body RID.Any) Vector2.XY
	//Overridable version of [method PhysicsServer2D.body_set_constant_torque].
	BodySetConstantTorque(body RID.Any, torque Float.X)
	//Overridable version of [method PhysicsServer2D.body_get_constant_torque].
	BodyGetConstantTorque(body RID.Any) Float.X
	//Overridable version of [method PhysicsServer2D.body_set_axis_velocity].
	BodySetAxisVelocity(body RID.Any, axis_velocity Vector2.XY)
	//Overridable version of [method PhysicsServer2D.body_add_collision_exception].
	BodyAddCollisionException(body RID.Any, excepted_body RID.Any)
	//Overridable version of [method PhysicsServer2D.body_remove_collision_exception].
	BodyRemoveCollisionException(body RID.Any, excepted_body RID.Any)
	//Returns the [RID]s of all bodies added as collision exceptions for the given [param body]. See also [method _body_add_collision_exception] and [method _body_remove_collision_exception].
	//Overridable version of [PhysicsServer2D]'s internal [code]body_get_collision_exceptions[/code] method. Corresponds to [method PhysicsBody2D.get_collision_exceptions].
	BodyGetCollisionExceptions(body RID.Any) []RID.Any
	//Overridable version of [method PhysicsServer2D.body_set_max_contacts_reported].
	BodySetMaxContactsReported(body RID.Any, amount int)
	//Overridable version of [method PhysicsServer2D.body_get_max_contacts_reported].
	BodyGetMaxContactsReported(body RID.Any) int
	//Overridable version of [PhysicsServer2D]'s internal [code]body_set_contacts_reported_depth_threshold[/code] method.
	//[b]Note:[/b] This method is currently unused by Godot's default physics implementation.
	BodySetContactsReportedDepthThreshold(body RID.Any, threshold Float.X)
	//Overridable version of [PhysicsServer2D]'s internal [code]body_get_contacts_reported_depth_threshold[/code] method.
	//[b]Note:[/b] This method is currently unused by Godot's default physics implementation.
	BodyGetContactsReportedDepthThreshold(body RID.Any) Float.X
	//Overridable version of [method PhysicsServer2D.body_set_omit_force_integration].
	BodySetOmitForceIntegration(body RID.Any, enable bool)
	//Overridable version of [method PhysicsServer2D.body_is_omitting_force_integration].
	BodyIsOmittingForceIntegration(body RID.Any) bool
	//Assigns the [param body] to call the given [param callable] during the synchronization phase of the loop, before [method _step] is called. See also [method _sync].
	//Overridable version of [method PhysicsServer2D.body_set_state_sync_callback].
	BodySetStateSyncCallback(body RID.Any, callable Callable.Function)
	//Overridable version of [method PhysicsServer2D.body_set_force_integration_callback].
	BodySetForceIntegrationCallback(body RID.Any, callable Callable.Function, userdata any)
	//Given a [param body], a [param shape], and their respective parameters, this method should return [code]true[/code] if a collision between the two would occur, with additional details passed in [param results].
	//Overridable version of [PhysicsServer2D]'s internal [code]shape_collide[/code] method. Corresponds to [method PhysicsDirectSpaceState2D.collide_shape].
	BodyCollideShape(body RID.Any, body_shape int, shape RID.Any, shape_xform Transform2D.OriginXY, motion Vector2.XY, results unsafe.Pointer, result_max int, result_count *int32) bool
	//If set to [code]true[/code], allows the body with the given [RID] to detect mouse inputs when the mouse cursor is hovering on it.
	//Overridable version of [PhysicsServer2D]'s internal [code]body_set_pickable[/code] method. Corresponds to [member CollisionObject2D.input_pickable].
	BodySetPickable(body RID.Any, pickable bool)
	//Overridable version of [method PhysicsServer2D.body_get_direct_state].
	BodyGetDirectState(body RID.Any) [1]gdclass.PhysicsDirectBodyState2D
	//Overridable version of [method PhysicsServer2D.body_test_motion]. Unlike the exposed implementation, this method does not receive all of the arguments inside a [PhysicsTestMotionParameters2D].
	BodyTestMotion(body RID.Any, from Transform2D.OriginXY, motion Vector2.XY, margin Float.X, collide_separation_ray bool, recovery_as_collision bool, result *MotionResult) bool
	//Overridable version of [method PhysicsServer2D.joint_create].
	JointCreate() RID.Any
	//Overridable version of [method PhysicsServer2D.joint_clear].
	JointClear(joint RID.Any)
	//Overridable version of [method PhysicsServer2D.joint_set_param].
	JointSetParam(joint RID.Any, param gdclass.PhysicsServer2DJointParam, value Float.X)
	//Overridable version of [method PhysicsServer2D.joint_get_param].
	JointGetParam(joint RID.Any, param gdclass.PhysicsServer2DJointParam) Float.X
	//Overridable version of [method PhysicsServer2D.joint_disable_collisions_between_bodies].
	JointDisableCollisionsBetweenBodies(joint RID.Any, disable bool)
	//Overridable version of [method PhysicsServer2D.joint_is_disabled_collisions_between_bodies].
	JointIsDisabledCollisionsBetweenBodies(joint RID.Any) bool
	//Overridable version of [method PhysicsServer2D.joint_make_pin].
	JointMakePin(joint RID.Any, anchor Vector2.XY, body_a RID.Any, body_b RID.Any)
	//Overridable version of [method PhysicsServer2D.joint_make_groove].
	JointMakeGroove(joint RID.Any, a_groove1 Vector2.XY, a_groove2 Vector2.XY, b_anchor Vector2.XY, body_a RID.Any, body_b RID.Any)
	//Overridable version of [method PhysicsServer2D.joint_make_damped_spring].
	JointMakeDampedSpring(joint RID.Any, anchor_a Vector2.XY, anchor_b Vector2.XY, body_a RID.Any, body_b RID.Any)
	//Overridable version of [method PhysicsServer2D.pin_joint_set_flag].
	PinJointSetFlag(joint RID.Any, flag gdclass.PhysicsServer2DPinJointFlag, enabled bool)
	//Overridable version of [method PhysicsServer2D.pin_joint_get_flag].
	PinJointGetFlag(joint RID.Any, flag gdclass.PhysicsServer2DPinJointFlag) bool
	//Overridable version of [method PhysicsServer2D.pin_joint_set_param].
	PinJointSetParam(joint RID.Any, param gdclass.PhysicsServer2DPinJointParam, value Float.X)
	//Overridable version of [method PhysicsServer2D.pin_joint_get_param].
	PinJointGetParam(joint RID.Any, param gdclass.PhysicsServer2DPinJointParam) Float.X
	//Overridable version of [method PhysicsServer2D.damped_spring_joint_set_param].
	DampedSpringJointSetParam(joint RID.Any, param gdclass.PhysicsServer2DDampedSpringParam, value Float.X)
	//Overridable version of [method PhysicsServer2D.damped_spring_joint_get_param].
	DampedSpringJointGetParam(joint RID.Any, param gdclass.PhysicsServer2DDampedSpringParam) Float.X
	//Overridable version of [method PhysicsServer2D.joint_get_type].
	JointGetType(joint RID.Any) gdclass.PhysicsServer2DJointType
	//Overridable version of [method PhysicsServer2D.free_rid].
	FreeRid(rid RID.Any)
	//Overridable version of [method PhysicsServer2D.set_active].
	SetActive(active bool)
	//Called when the main loop is initialized and creates a new instance of this physics server. See also [method MainLoop._initialize] and [method _finish].
	//Overridable version of [PhysicsServer2D]'s internal [code]init[/code] method.
	Init()
	//Called every physics step to process the physics simulation. [param step] is the time elapsed since the last physics step, in seconds. It is usually the same as [method Node.get_physics_process_delta_time].
	//Overridable version of [PhysicsServer2D]'s internal [code skip-lint]step[/code] method.
	Step(step Float.X)
	//Called to indicate that the physics server is synchronizing and cannot access physics states if running on a separate thread. See also [method _end_sync].
	//Overridable version of [PhysicsServer2D]'s internal [code]sync[/code] method.
	Sync()
	//Called every physics step before [method _step] to process all remaining queries.
	//Overridable version of [PhysicsServer2D]'s internal [code]flush_queries[/code] method.
	FlushQueries()
	//Called to indicate that the physics server has stopped synchronizing. It is in the loop's iteration/physics phase, and can access physics objects even if running on a separate thread. See also [method _sync].
	//Overridable version of [PhysicsServer2D]'s internal [code]end_sync[/code] method.
	EndSync()
	//Called when the main loop finalizes to shut down the physics server. See also [method MainLoop._finalize] and [method _init].
	//Overridable version of [PhysicsServer2D]'s internal [code]finish[/code] method.
	Finish()
	//Overridable method that should return [code]true[/code] when the physics server is processing queries. See also [method _flush_queries].
	//Overridable version of [PhysicsServer2D]'s internal [code]is_flushing_queries[/code] method.
	IsFlushingQueries() bool
	//Overridable version of [method PhysicsServer2D.get_process_info].
	GetProcessInfo(process_info gdclass.PhysicsServer2DProcessInfo) int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL