forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 20
class_physics2dserver
reduz edited this page May 24, 2014
·
11 revisions
####Inherits: Object ####Category: Core
Physics 2D Server.
- RID shape_create ( int type )
- void shape_set_data ( RID shape, var data )
- int shape_get_type ( RID shape ) const
- void shape_get_data ( RID shape ) const
- RID space_create ( )
- void space_set_active ( RID space, bool active )
- bool space_is_active ( RID space ) const
- void space_set_param ( RID space, int param, float value )
- float space_get_param ( RID space, int param ) const
- Physics2DDirectSpaceState space_get_direct_state ( RID space )
- RID area_create ( )
- void area_set_space ( RID area, RID space )
- RID area_get_space ( RID area ) const
- void area_set_space_override_mode ( RID area, int mode )
- int area_get_space_override_mode ( RID area ) const
- void area_add_shape ( RID area, int shape, RID transform=1,0, 0,1, 0,0 )
- RID area_set_shape ( RID area, int shape_idx ) const
- void area_set_shape_transform ( RID area, int shape_idx, Matrix32 transform )
- int area_get_shape_count ( RID area ) const
- RID area_get_shape ( RID area, int shape_idx ) const
- Matrix32 area_get_shape_transform ( RID area, int shape_idx ) const
- void area_remove_shape ( RID area, int shape_idx )
- void area_clear_shapes ( RID area )
- void area_set_param ( RID area, int param, var value )
- void area_set_transform ( RID area, Matrix32 transform )
- void area_get_param ( RID area, int param ) const
- Matrix32 area_get_transform ( RID area ) const
- void area_attach_object_instance_ID ( RID area, int id )
- int area_get_object_instance_ID ( RID area ) const
- void area_set_monitor_callback ( RID receiver, Object method, String arg2 )
- RID body_create ( int mode=2, bool init_sleeping=false )
- void body_set_space ( RID body, RID space )
- RID body_get_space ( RID body ) const
- void body_set_mode ( RID body, int mode )
- int body_get_mode ( RID body ) const
- void body_add_shape ( RID body, RID shape, Matrix32 transform=1,0, 0,1, 0,0 )
- void body_set_shape ( RID body, int shape_idx, RID shape )
- void body_set_shape_transform ( RID body, int shape_idx, Matrix32 transform )
- int body_get_shape_count ( RID body ) const
- RID body_get_shape ( RID body, int shape_idx ) const
- Matrix32 body_get_shape_transform ( RID body, int shape_idx ) const
- void body_remove_shape ( RID body, int shape_idx )
- void body_clear_shapes ( RID body )
- void body_set_shape_as_trigger ( RID body, int shape_idx, bool enable )
- bool body_is_shape_set_as_trigger ( RID body, int shape_idx ) const
- void body_attach_object_instance_ID ( RID body, int id )
- int body_get_object_instance_ID ( RID body ) const
- void body_set_continuous_collision_detection_mode ( RID body, int mode )
- int body_get_continuous_collision_detection_mode ( RID body ) const
- void body_set_layer_mask ( RID body, int mask )
- int body_get_layer_mask ( RID body, int arg1 ) const
- void body_set_user_mask ( RID body, int mask )
- int body_get_user_mask ( RID body, int arg1 ) const
- void body_set_param ( RID body, int param, float value )
- float body_get_param ( RID body, int param ) const
- void body_set_state ( RID body, int state, var value )
- void body_get_state ( RID body, int state ) const
- void body_apply_impulse ( RID body, Vector2 pos, Vector2 impulse )
- void body_set_axis_velocity ( RID body, Vector2 axis_velocity )
- void body_add_collision_exception ( RID body, RID excepted_body )
- void body_remove_collision_exception ( RID body, RID excepted_body )
- void body_set_max_contacts_reported ( RID body, int amount )
- int body_get_max_contacts_reported ( RID body ) const
- void body_set_omit_force_integration ( RID body, bool enable )
- bool body_is_omitting_force_integration ( RID body ) const
- void body_set_force_integration_callback ( RID body, Object receiver, String method, var arg3 )
- void joint_set_param ( RID joint, int param, float value )
- float joint_get_param ( RID joint, int param ) const
- RID pin_joint_create ( Vector2 anchor, RID body_a, RID body_b=RID() )
- RID groove_joint_create ( Vector2 groove1_a, Vector2 groove2_a, Vector2 anchor_b, RID body_a=RID(), RID body_b=RID() )
- RID damped_spring_joint_create ( Vector2 anchor_a, Vector2 anchor_b, RID body_a, RID body_b=RID() )
- void damped_string_joint_set_param ( RID joint, int param, float value=RID() )
- float damped_string_joint_get_param ( RID joint, int param ) const
- int joint_get_type ( RID joint ) const
- void free ( RID rid )
- void set_active ( bool active )
- SHAPE_LINE = 0
- SHAPE_SEGMENT = 2
- SHAPE_CIRCLE = 3
- SHAPE_RECTANGLE = 4
- SHAPE_CAPSULE = 5
- SHAPE_CONVEX_POLYGON = 6
- SHAPE_CONCAVE_POLYGON = 7
- SHAPE_CUSTOM = 8
- AREA_PARAM_GRAVITY = 0
- AREA_PARAM_GRAVITY_VECTOR = 1
- AREA_PARAM_GRAVITY_IS_POINT = 2
- AREA_PARAM_GRAVITY_POINT_ATTENUATION = 3
- AREA_PARAM_DENSITY = 4
- AREA_PARAM_PRIORITY = 5
- AREA_SPACE_OVERRIDE_COMBINE = 1
- AREA_SPACE_OVERRIDE_DISABLED = 0
- AREA_SPACE_OVERRIDE_REPLACE = 2
- BODY_MODE_STATIC = 0
- BODY_MODE_KINEMATIC = 1
- BODY_MODE_RIGID = 2
- BODY_MODE_CHARACTER = 3
- BODY_PARAM_BOUNCE = 0
- BODY_PARAM_FRICTION = 1
- BODY_PARAM_MASS = 2
- BODY_PARAM_MAX = 3
- BODY_STATE_TRANSFORM = 0
- BODY_STATE_LINEAR_VELOCITY = 1
- BODY_STATE_ANGULAR_VELOCITY = 2
- BODY_STATE_SLEEPING = 3
- BODY_STATE_CAN_SLEEP = 4
- JOINT_PIN = 0
- JOINT_GROOVE = 1
- JOINT_DAMPED_SPRING = 2
- DAMPED_STRING_REST_LENGTH = 0
- DAMPED_STRING_STIFFNESS = 1
- DAMPED_STRING_DAMPING = 2
- CCD_MODE_DISABLED = 0
- CCD_MODE_CAST_RAY = 1
- CCD_MODE_CAST_SHAPE = 2
- AREA_BODY_ADDED = 0
- AREA_BODY_REMOVED = 1
Physics 2D Server is the server responsible for all 2D physics.