PhysicsServer2D
Inherits: Object
Inherited By: PhysicsServer2DExtension
There is currently no description for this class. Please help us by contributing one!
Methods
Enumerations
enum SpaceParameter:
SpaceParameter SPACE_PARAM_CONTACT_RECYCLE_RADIUS = 0
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_CONTACT_MAX_SEPARATION = 1
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_CONTACT_MAX_ALLOWED_PENETRATION = 2
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_CONTACT_DEFAULT_BIAS = 3
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD = 4
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD = 5
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_BODY_TIME_TO_SLEEP = 6
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS = 7
There is currently no description for this enum. Please help us by contributing one!
SpaceParameter SPACE_PARAM_SOLVER_ITERATIONS = 8
There is currently no description for this enum. Please help us by contributing one!
enum ShapeType:
ShapeType SHAPE_WORLD_BOUNDARY = 0
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_SEPARATION_RAY = 1
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_SEGMENT = 2
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_CIRCLE = 3
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_RECTANGLE = 4
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_CAPSULE = 5
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_CONVEX_POLYGON = 6
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_CONCAVE_POLYGON = 7
There is currently no description for this enum. Please help us by contributing one!
ShapeType SHAPE_CUSTOM = 8
There is currently no description for this enum. Please help us by contributing one!
enum AreaParameter:
AreaParameter AREA_PARAM_GRAVITY_OVERRIDE_MODE = 0
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_GRAVITY = 1
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_GRAVITY_VECTOR = 2
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_GRAVITY_IS_POINT = 3
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_GRAVITY_POINT_UNIT_DISTANCE = 4
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_LINEAR_DAMP_OVERRIDE_MODE = 5
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_LINEAR_DAMP = 6
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_ANGULAR_DAMP_OVERRIDE_MODE = 7
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_ANGULAR_DAMP = 8
There is currently no description for this enum. Please help us by contributing one!
AreaParameter AREA_PARAM_PRIORITY = 9
There is currently no description for this enum. Please help us by contributing one!
enum AreaSpaceOverrideMode:
AreaSpaceOverrideMode AREA_SPACE_OVERRIDE_DISABLED = 0
There is currently no description for this enum. Please help us by contributing one!
AreaSpaceOverrideMode AREA_SPACE_OVERRIDE_COMBINE = 1
There is currently no description for this enum. Please help us by contributing one!
AreaSpaceOverrideMode AREA_SPACE_OVERRIDE_COMBINE_REPLACE = 2
There is currently no description for this enum. Please help us by contributing one!
AreaSpaceOverrideMode AREA_SPACE_OVERRIDE_REPLACE = 3
There is currently no description for this enum. Please help us by contributing one!
AreaSpaceOverrideMode AREA_SPACE_OVERRIDE_REPLACE_COMBINE = 4
There is currently no description for this enum. Please help us by contributing one!
enum BodyMode:
BodyMode BODY_MODE_STATIC = 0
There is currently no description for this enum. Please help us by contributing one!
BodyMode BODY_MODE_KINEMATIC = 1
There is currently no description for this enum. Please help us by contributing one!
BodyMode BODY_MODE_RIGID = 2
There is currently no description for this enum. Please help us by contributing one!
BodyMode BODY_MODE_RIGID_LINEAR = 3
There is currently no description for this enum. Please help us by contributing one!
enum BodyParameter:
BodyParameter BODY_PARAM_BOUNCE = 0
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_FRICTION = 1
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_MASS = 2
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_INERTIA = 3
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_CENTER_OF_MASS = 4
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_GRAVITY_SCALE = 5
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_LINEAR_DAMP_MODE = 6
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_ANGULAR_DAMP_MODE = 7
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_LINEAR_DAMP = 8
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_ANGULAR_DAMP = 9
There is currently no description for this enum. Please help us by contributing one!
BodyParameter BODY_PARAM_MAX = 10
There is currently no description for this enum. Please help us by contributing one!
enum BodyDampMode:
BodyDampMode BODY_DAMP_MODE_COMBINE = 0
There is currently no description for this enum. Please help us by contributing one!
BodyDampMode BODY_DAMP_MODE_REPLACE = 1
There is currently no description for this enum. Please help us by contributing one!
enum BodyState:
BodyState BODY_STATE_TRANSFORM = 0
There is currently no description for this enum. Please help us by contributing one!
BodyState BODY_STATE_LINEAR_VELOCITY = 1
There is currently no description for this enum. Please help us by contributing one!
BodyState BODY_STATE_ANGULAR_VELOCITY = 2
There is currently no description for this enum. Please help us by contributing one!
BodyState BODY_STATE_SLEEPING = 3
There is currently no description for this enum. Please help us by contributing one!
BodyState BODY_STATE_CAN_SLEEP = 4
There is currently no description for this enum. Please help us by contributing one!
enum JointType:
JointType JOINT_TYPE_PIN = 0
There is currently no description for this enum. Please help us by contributing one!
JointType JOINT_TYPE_GROOVE = 1
There is currently no description for this enum. Please help us by contributing one!
JointType JOINT_TYPE_DAMPED_SPRING = 2
There is currently no description for this enum. Please help us by contributing one!
JointType JOINT_TYPE_MAX = 3
There is currently no description for this enum. Please help us by contributing one!
enum JointParam:
JointParam JOINT_PARAM_BIAS = 0
There is currently no description for this enum. Please help us by contributing one!
JointParam JOINT_PARAM_MAX_BIAS = 1
There is currently no description for this enum. Please help us by contributing one!
JointParam JOINT_PARAM_MAX_FORCE = 2
There is currently no description for this enum. Please help us by contributing one!
enum PinJointParam:
PinJointParam PIN_JOINT_SOFTNESS = 0
There is currently no description for this enum. Please help us by contributing one!
PinJointParam PIN_JOINT_LIMIT_UPPER = 1
There is currently no description for this enum. Please help us by contributing one!
PinJointParam PIN_JOINT_LIMIT_LOWER = 2
There is currently no description for this enum. Please help us by contributing one!
PinJointParam PIN_JOINT_MOTOR_TARGET_VELOCITY = 3
There is currently no description for this enum. Please help us by contributing one!
enum PinJointFlag:
PinJointFlag PIN_JOINT_FLAG_ANGULAR_LIMIT_ENABLED = 0
There is currently no description for this enum. Please help us by contributing one!
PinJointFlag PIN_JOINT_FLAG_MOTOR_ENABLED = 1
There is currently no description for this enum. Please help us by contributing one!
enum DampedSpringParam:
DampedSpringParam DAMPED_SPRING_REST_LENGTH = 0
There is currently no description for this enum. Please help us by contributing one!
DampedSpringParam DAMPED_SPRING_STIFFNESS = 1
There is currently no description for this enum. Please help us by contributing one!
DampedSpringParam DAMPED_SPRING_DAMPING = 2
There is currently no description for this enum. Please help us by contributing one!
enum CCDMode:
CCDMode CCD_MODE_DISABLED = 0
There is currently no description for this enum. Please help us by contributing one!
CCDMode CCD_MODE_CAST_RAY = 1
There is currently no description for this enum. Please help us by contributing one!
CCDMode CCD_MODE_CAST_SHAPE = 2
There is currently no description for this enum. Please help us by contributing one!
enum AreaBodyStatus:
AreaBodyStatus AREA_BODY_ADDED = 0
There is currently no description for this enum. Please help us by contributing one!
AreaBodyStatus AREA_BODY_REMOVED = 1
There is currently no description for this enum. Please help us by contributing one!
enum ProcessInfo:
ProcessInfo INFO_ACTIVE_OBJECTS = 0
There is currently no description for this enum. Please help us by contributing one!
ProcessInfo INFO_COLLISION_PAIRS = 1
There is currently no description for this enum. Please help us by contributing one!
ProcessInfo INFO_ISLAND_COUNT = 2
There is currently no description for this enum. Please help us by contributing one!
Method Descriptions
void area_add_shape ( RID area, RID shape, Transform2D transform=Transform2D(1, 0, 0, 1, 0, 0), bool disabled=false )
There is currently no description for this method. Please help us by contributing one!
void area_attach_canvas_instance_id ( RID area, int id )
There is currently no description for this method. Please help us by contributing one!
void area_attach_object_instance_id ( RID area, int id )
There is currently no description for this method. Please help us by contributing one!
void area_clear_shapes ( RID area )
There is currently no description for this method. Please help us by contributing one!
RID area_create ( )
There is currently no description for this method. Please help us by contributing one!
int area_get_canvas_instance_id ( RID area ) const
There is currently no description for this method. Please help us by contributing one!
int area_get_collision_layer ( RID area ) const
There is currently no description for this method. Please help us by contributing one!
int area_get_collision_mask ( RID area ) const
There is currently no description for this method. Please help us by contributing one!
int area_get_object_instance_id ( RID area ) const
There is currently no description for this method. Please help us by contributing one!
Variant area_get_param ( RID area, AreaParameter param ) const
There is currently no description for this method. Please help us by contributing one!
RID area_get_shape ( RID area, int shape_idx ) const
There is currently no description for this method. Please help us by contributing one!
int area_get_shape_count ( RID area ) const
There is currently no description for this method. Please help us by contributing one!
Transform2D area_get_shape_transform ( RID area, int shape_idx ) const
There is currently no description for this method. Please help us by contributing one!
RID area_get_space ( RID area ) const
There is currently no description for this method. Please help us by contributing one!
Transform2D area_get_transform ( RID area ) const
There is currently no description for this method. Please help us by contributing one!
void area_remove_shape ( RID area, int shape_idx )
There is currently no description for this method. Please help us by contributing one!
void area_set_area_monitor_callback ( RID area, Callable callback )
There is currently no description for this method. Please help us by contributing one!
void area_set_collision_layer ( RID area, int layer )
There is currently no description for this method. Please help us by contributing one!
void area_set_collision_mask ( RID area, int mask )
There is currently no description for this method. Please help us by contributing one!
void area_set_monitor_callback ( RID area, Callable callback )
There is currently no description for this method. Please help us by contributing one!
void area_set_monitorable ( RID area, bool monitorable )
There is currently no description for this method. Please help us by contributing one!
void area_set_param ( RID area, AreaParameter param, Variant value )
There is currently no description for this method. Please help us by contributing one!
void area_set_shape ( RID area, int shape_idx, RID shape )
There is currently no description for this method. Please help us by contributing one!
void area_set_shape_disabled ( RID area, int shape_idx, bool disabled )
There is currently no description for this method. Please help us by contributing one!
void area_set_shape_transform ( RID area, int shape_idx, Transform2D transform )
There is currently no description for this method. Please help us by contributing one!
void area_set_space ( RID area, RID space )
There is currently no description for this method. Please help us by contributing one!
void area_set_transform ( RID area, Transform2D transform )
There is currently no description for this method. Please help us by contributing one!
void body_add_collision_exception ( RID body, RID excepted_body )
There is currently no description for this method. Please help us by contributing one!
void body_add_constant_central_force ( RID body, Vector2 force )
There is currently no description for this method. Please help us by contributing one!
void body_add_constant_force ( RID body, Vector2 force, Vector2 position=Vector2(0, 0) )
There is currently no description for this method. Please help us by contributing one!
void body_add_constant_torque ( RID body, float torque )
There is currently no description for this method. Please help us by contributing one!
void body_add_shape ( RID body, RID shape, Transform2D transform=Transform2D(1, 0, 0, 1, 0, 0), bool disabled=false )
There is currently no description for this method. Please help us by contributing one!
void body_apply_central_force ( RID body, Vector2 force )
There is currently no description for this method. Please help us by contributing one!
void body_apply_central_impulse ( RID body, Vector2 impulse )
There is currently no description for this method. Please help us by contributing one!
void body_apply_force ( RID body, Vector2 force, Vector2 position=Vector2(0, 0) )
There is currently no description for this method. Please help us by contributing one!
void body_apply_impulse ( RID body, Vector2 impulse, Vector2 position=Vector2(0, 0) )
There is currently no description for this method. Please help us by contributing one!
void body_apply_torque ( RID body, float torque )
There is currently no description for this method. Please help us by contributing one!
void body_apply_torque_impulse ( RID body, float impulse )
There is currently no description for this method. Please help us by contributing one!
void body_attach_canvas_instance_id ( RID body, int id )
There is currently no description for this method. Please help us by contributing one!
void body_attach_object_instance_id ( RID body, int id )
There is currently no description for this method. Please help us by contributing one!
void body_clear_shapes ( RID body )
There is currently no description for this method. Please help us by contributing one!
RID body_create ( )
There is currently no description for this method. Please help us by contributing one!
int body_get_canvas_instance_id ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
int body_get_collision_layer ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
int body_get_collision_mask ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
float body_get_collision_priority ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
Vector2 body_get_constant_force ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
float body_get_constant_torque ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
CCDMode body_get_continuous_collision_detection_mode ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
PhysicsDirectBodyState2D body_get_direct_state ( RID body )
There is currently no description for this method. Please help us by contributing one!
int body_get_max_contacts_reported ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
BodyMode body_get_mode ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
int body_get_object_instance_id ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
Variant body_get_param ( RID body, BodyParameter param ) const
There is currently no description for this method. Please help us by contributing one!
RID body_get_shape ( RID body, int shape_idx ) const
There is currently no description for this method. Please help us by contributing one!
int body_get_shape_count ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
Transform2D body_get_shape_transform ( RID body, int shape_idx ) const
There is currently no description for this method. Please help us by contributing one!
RID body_get_space ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
Variant body_get_state ( RID body, BodyState state ) const
There is currently no description for this method. Please help us by contributing one!
bool body_is_omitting_force_integration ( RID body ) const
There is currently no description for this method. Please help us by contributing one!
void body_remove_collision_exception ( RID body, RID excepted_body )
There is currently no description for this method. Please help us by contributing one!
void body_remove_shape ( RID body, int shape_idx )
There is currently no description for this method. Please help us by contributing one!
void body_reset_mass_properties ( RID body )
There is currently no description for this method. Please help us by contributing one!
void body_set_axis_velocity ( RID body, Vector2 axis_velocity )
There is currently no description for this method. Please help us by contributing one!
void body_set_collision_layer ( RID body, int layer )
There is currently no description for this method. Please help us by contributing one!
void body_set_collision_mask ( RID body, int mask )
There is currently no description for this method. Please help us by contributing one!
void body_set_collision_priority ( RID body, float priority )
There is currently no description for this method. Please help us by contributing one!
void body_set_constant_force ( RID body, Vector2 force )
There is currently no description for this method. Please help us by contributing one!
void body_set_constant_torque ( RID body, float torque )
There is currently no description for this method. Please help us by contributing one!
void body_set_continuous_collision_detection_mode ( RID body, CCDMode mode )
There is currently no description for this method. Please help us by contributing one!
void body_set_force_integration_callback ( RID body, Callable callable, Variant userdata=null )
There is currently no description for this method. Please help us by contributing one!
void body_set_max_contacts_reported ( RID body, int amount )
There is currently no description for this method. Please help us by contributing one!
void body_set_mode ( RID body, BodyMode mode )
There is currently no description for this method. Please help us by contributing one!
void body_set_omit_force_integration ( RID body, bool enable )
There is currently no description for this method. Please help us by contributing one!
void body_set_param ( RID body, BodyParameter param, Variant value )
There is currently no description for this method. Please help us by contributing one!
void body_set_shape ( RID body, int shape_idx, RID shape )
There is currently no description for this method. Please help us by contributing one!
void body_set_shape_as_one_way_collision ( RID body, int shape_idx, bool enable, float margin )
There is currently no description for this method. Please help us by contributing one!
void body_set_shape_disabled ( RID body, int shape_idx, bool disabled )
There is currently no description for this method. Please help us by contributing one!
void body_set_shape_transform ( RID body, int shape_idx, Transform2D transform )
There is currently no description for this method. Please help us by contributing one!
void body_set_space ( RID body, RID space )
There is currently no description for this method. Please help us by contributing one!
void body_set_state ( RID body, BodyState state, Variant value )
There is currently no description for this method. Please help us by contributing one!
void body_set_state_sync_callback ( RID body, Callable callable )
There is currently no description for this method. Please help us by contributing one!
bool body_test_motion ( RID body, PhysicsTestMotionParameters2D parameters, PhysicsTestMotionResult2D result=null )
There is currently no description for this method. Please help us by contributing one!
RID capsule_shape_create ( )
There is currently no description for this method. Please help us by contributing one!
RID circle_shape_create ( )
There is currently no description for this method. Please help us by contributing one!
RID concave_polygon_shape_create ( )
There is currently no description for this method. Please help us by contributing one!
RID convex_polygon_shape_create ( )
There is currently no description for this method. Please help us by contributing one!
float damped_spring_joint_get_param ( RID joint, DampedSpringParam param ) const
There is currently no description for this method. Please help us by contributing one!
void damped_spring_joint_set_param ( RID joint, DampedSpringParam param, float value )
There is currently no description for this method. Please help us by contributing one!
void free_rid ( RID rid )
There is currently no description for this method. Please help us by contributing one!
int get_process_info ( ProcessInfo process_info )
There is currently no description for this method. Please help us by contributing one!
void joint_clear ( RID joint )
There is currently no description for this method. Please help us by contributing one!
RID joint_create ( )
There is currently no description for this method. Please help us by contributing one!
void joint_disable_collisions_between_bodies ( RID joint, bool disable )
There is currently no description for this method. Please help us by contributing one!
float joint_get_param ( RID joint, JointParam param ) const
There is currently no description for this method. Please help us by contributing one!
JointType joint_get_type ( RID joint ) const
There is currently no description for this method. Please help us by contributing one!
bool joint_is_disabled_collisions_between_bodies ( RID joint ) const
There is currently no description for this method. Please help us by contributing one!
void joint_make_damped_spring ( RID joint, Vector2 anchor_a, Vector2 anchor_b, RID body_a, RID body_b=RID() )
There is currently no description for this method. Please help us by contributing one!
void joint_make_groove ( RID joint, Vector2 groove1_a, Vector2 groove2_a, Vector2 anchor_b, RID body_a=RID(), RID body_b=RID() )
There is currently no description for this method. Please help us by contributing one!
void joint_make_pin ( RID joint, Vector2 anchor, RID body_a, RID body_b=RID() )
There is currently no description for this method. Please help us by contributing one!
void joint_set_param ( RID joint, JointParam param, float value )
There is currently no description for this method. Please help us by contributing one!
bool pin_joint_get_flag ( RID joint, PinJointFlag flag ) const
There is currently no description for this method. Please help us by contributing one!
float pin_joint_get_param ( RID joint, PinJointParam param ) const
There is currently no description for this method. Please help us by contributing one!
void pin_joint_set_flag ( RID joint, PinJointFlag flag, bool enabled )
There is currently no description for this method. Please help us by contributing one!
void pin_joint_set_param ( RID joint, PinJointParam param, float value )
There is currently no description for this method. Please help us by contributing one!
RID rectangle_shape_create ( )
There is currently no description for this method. Please help us by contributing one!
RID segment_shape_create ( )
There is currently no description for this method. Please help us by contributing one!
RID separation_ray_shape_create ( )
There is currently no description for this method. Please help us by contributing one!
void set_active ( bool active )
There is currently no description for this method. Please help us by contributing one!
Variant shape_get_data ( RID shape ) const
There is currently no description for this method. Please help us by contributing one!
ShapeType shape_get_type ( RID shape ) const
There is currently no description for this method. Please help us by contributing one!
void shape_set_data ( RID shape, Variant data )
There is currently no description for this method. Please help us by contributing one!
RID space_create ( )
There is currently no description for this method. Please help us by contributing one!
PhysicsDirectSpaceState2D space_get_direct_state ( RID space )
There is currently no description for this method. Please help us by contributing one!
float space_get_param ( RID space, SpaceParameter param ) const
There is currently no description for this method. Please help us by contributing one!
bool space_is_active ( RID space ) const
There is currently no description for this method. Please help us by contributing one!
void space_set_active ( RID space, bool active )
There is currently no description for this method. Please help us by contributing one!
void space_set_param ( RID space, SpaceParameter param, float value )
There is currently no description for this method. Please help us by contributing one!
RID world_boundary_shape_create ( )
There is currently no description for this method. Please help us by contributing one!