Module physics_2d_server

Search:
Group by:

Consts

SPACE_PARAM_CONTACT_RECYCLE_RADIUS* = 0'i64
SPACE_PARAM_CONTACT_MAX_SEPARATION* = 1'i64
SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION* = 2'i64
SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD* = 3'i64
SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD* = 4'i64
SPACE_PARAM_BODY_TIME_TO_SLEEP* = 5'i64
SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS* = 6'i64
SHAPE_LINE* = 0'i64
SHAPE_SEGMENT* = 2'i64
SHAPE_CIRCLE* = 3'i64
SHAPE_RECTANGLE* = 4'i64
SHAPE_CAPSULE* = 5'i64
SHAPE_CONVEX_POLYGON* = 6'i64
SHAPE_CONCAVE_POLYGON* = 7'i64
SHAPE_CUSTOM* = 8'i64
AREA_PARAM_GRAVITY* = 0'i64
AREA_PARAM_GRAVITY_VECTOR* = 1'i64
AREA_PARAM_GRAVITY_IS_POINT* = 2'i64
AREA_PARAM_GRAVITY_DISTANCE_SCALE* = 3'i64
AREA_PARAM_GRAVITY_POINT_ATTENUATION* = 4'i64
AREA_PARAM_LINEAR_DAMP* = 5'i64
AREA_PARAM_ANGULAR_DAMP* = 6'i64
AREA_PARAM_PRIORITY* = 7'i64
AREA_SPACE_OVERRIDE_DISABLED* = 0'i64
AREA_SPACE_OVERRIDE_COMBINE* = 1'i64
AREA_SPACE_OVERRIDE_COMBINE_REPLACE* = 2'i64
AREA_SPACE_OVERRIDE_REPLACE* = 3'i64
AREA_SPACE_OVERRIDE_REPLACE_COMBINE* = 4'i64
BODY_MODE_STATIC* = 0'i64
BODY_MODE_KINEMATIC* = 1'i64
BODY_MODE_RIGID* = 2'i64
BODY_MODE_CHARACTER* = 3'i64
BODY_PARAM_BOUNCE* = 0'i64
BODY_PARAM_FRICTION* = 1'i64
BODY_PARAM_MASS* = 2'i64
BODY_PARAM_INERTIA* = 3'i64
BODY_PARAM_GRAVITY_SCALE* = 4'i64
BODY_PARAM_LINEAR_DAMP* = 5'i64
BODY_PARAM_ANGULAR_DAMP* = 6'i64
BODY_PARAM_MAX* = 7'i64
BODY_STATE_TRANSFORM* = 0'i64
BODY_STATE_LINEAR_VELOCITY* = 1'i64
BODY_STATE_ANGULAR_VELOCITY* = 2'i64
BODY_STATE_SLEEPING* = 3'i64
BODY_STATE_CAN_SLEEP* = 4'i64
JOINT_PIN* = 0'i64
JOINT_GROOVE* = 1'i64
JOINT_DAMPED_SPRING* = 2'i64
DAMPED_STRING_REST_LENGTH* = 0'i64
DAMPED_STRING_STIFFNESS* = 1'i64
DAMPED_STRING_DAMPING* = 2'i64
CCD_MODE_DISABLED* = 0'i64
CCD_MODE_CAST_RAY* = 1'i64
CCD_MODE_CAST_SHAPE* = 2'i64
AREA_BODY_ADDED* = 0'i64
AREA_BODY_REMOVED* = 1'i64
INFO_ACTIVE_OBJECTS* = 0'i64
INFO_COLLISION_PAIRS* = 1'i64
INFO_ISLAND_COUNT* = 2'i64

Procs

proc shapeCreate*(typee: int64): RID {.
gcsafe, locks: 0
.}
proc shapeSetData*(shape: RID; data: Variant) {.
gcsafe, locks: 0
.}
proc shapeGetType*(shape: RID): int64 {.
gcsafe, locks: 0
.}
proc shapeGetData*(shape: RID): Variant {.
gcsafe, locks: 0
.}
proc spaceCreate*(): RID {.
gcsafe, locks: 0
.}
proc spaceSetActive*(space: RID; active: bool) {.
gcsafe, locks: 0
.}
proc spaceIsActive*(space: RID): bool {.
gcsafe, locks: 0
.}
proc spaceSetParam*(space: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc spaceGetParam*(space: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc spaceGetDirectState*(space: RID): Physics2DDirectSpaceState {.
gcsafe, locks: 0
.}
proc areaCreate*(): RID {.
gcsafe, locks: 0
.}
proc areaSetSpace*(area: RID; space: RID) {.
gcsafe, locks: 0
.}
proc areaGetSpace*(area: RID): RID {.
gcsafe, locks: 0
.}
proc areaSetSpaceOverrideMode*(area: RID; mode: int64) {.
gcsafe, locks: 0
.}
proc areaGetSpaceOverrideMode*(area: RID): int64 {.
gcsafe, locks: 0
.}
proc areaAddShape*(area: RID; shape: RID; transform: Transform2D) {.
gcsafe, locks: 0
.}
proc areaSetShape*(area: RID; shapeIdx: int64; shape: RID) {.
gcsafe, locks: 0
.}
proc areaSetShapeTransform*(area: RID; shapeIdx: int64; transform: Transform2D) {.
gcsafe, locks: 0
.}
proc areaSetShapeDisabled*(area: RID; shapeIdx: int64; disable: bool) {.
gcsafe, locks: 0
.}
proc areaGetShapeCount*(area: RID): int64 {.
gcsafe, locks: 0
.}
proc areaGetShape*(area: RID; shapeIdx: int64): RID {.
gcsafe, locks: 0
.}
proc areaGetShapeTransform*(area: RID; shapeIdx: int64): Transform2D {.
gcsafe, locks: 0
.}
proc areaRemoveShape*(area: RID; shapeIdx: int64) {.
gcsafe, locks: 0
.}
proc areaClearShapes*(area: RID) {.
gcsafe, locks: 0
.}
proc areaSetCollisionLayer*(area: RID; layer: int64) {.
gcsafe, locks: 0
.}
proc areaSetCollisionMask*(area: RID; mask: int64) {.
gcsafe, locks: 0
.}
proc areaSetParam*(area: RID; param: int64; value: Variant) {.
gcsafe, locks: 0
.}
proc areaSetTransform*(area: RID; transform: Transform2D) {.
gcsafe, locks: 0
.}
proc areaGetParam*(area: RID; param: int64): Variant {.
gcsafe, locks: 0
.}
proc areaGetTransform*(area: RID): Transform2D {.
gcsafe, locks: 0
.}
proc areaAttachObjectInstanceId*(area: RID; id: int64) {.
gcsafe, locks: 0
.}
proc areaGetObjectInstanceId*(area: RID): int64 {.
gcsafe, locks: 0
.}
proc areaSetMonitorCallback*(area: RID; receiver: Object; methodd: string) {.
gcsafe, locks: 0
.}
proc bodyCreate*(mode: int64 = 2'i64; initSleeping: bool = false): RID {.
gcsafe, locks: 0
.}
proc bodySetSpace*(body: RID; space: RID) {.
gcsafe, locks: 0
.}
proc bodyGetSpace*(body: RID): RID {.
gcsafe, locks: 0
.}
proc bodySetMode*(body: RID; mode: int64) {.
gcsafe, locks: 0
.}
proc bodyGetMode*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodyAddShape*(body: RID; shape: RID; transform: Transform2D) {.
gcsafe, locks: 0
.}
proc bodySetShape*(body: RID; shapeIdx: int64; shape: RID) {.
gcsafe, locks: 0
.}
proc bodySetShapeTransform*(body: RID; shapeIdx: int64; transform: Transform2D) {.
gcsafe, locks: 0
.}
proc bodySetShapeMetadata*(body: RID; shapeIdx: int64; metadata: Variant) {.
gcsafe, locks: 0
.}
proc bodyGetShapeCount*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodyGetShape*(body: RID; shapeIdx: int64): RID {.
gcsafe, locks: 0
.}
proc bodyGetShapeTransform*(body: RID; shapeIdx: int64): Transform2D {.
gcsafe, locks: 0
.}
proc bodyGetShapeMetadata*(body: RID; shapeIdx: int64): Variant {.
gcsafe, locks: 0
.}
proc bodyRemoveShape*(body: RID; shapeIdx: int64) {.
gcsafe, locks: 0
.}
proc bodyClearShapes*(body: RID) {.
gcsafe, locks: 0
.}
proc bodySetShapeDisabled*(body: RID; shapeIdx: int64; disable: bool) {.
gcsafe, locks: 0
.}
proc bodySetShapeAsOneWayCollision*(body: RID; shapeIdx: int64; enable: bool) {.
gcsafe, locks: 0
.}
proc bodyAttachObjectInstanceId*(body: RID; id: int64) {.
gcsafe, locks: 0
.}
proc bodyGetObjectInstanceId*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodySetContinuousCollisionDetectionMode*(body: RID; mode: int64) {.
gcsafe, locks: 0
.}
proc bodyGetContinuousCollisionDetectionMode*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodySetCollisionLayer*(body: RID; layer: int64) {.
gcsafe, locks: 0
.}
proc bodyGetCollisionLayer*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodySetCollisionMask*(body: RID; mask: int64) {.
gcsafe, locks: 0
.}
proc bodyGetCollisionMask*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodySetParam*(body: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc bodyGetParam*(body: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc bodySetState*(body: RID; state: int64; value: Variant) {.
gcsafe, locks: 0
.}
proc bodyGetState*(body: RID; state: int64): Variant {.
gcsafe, locks: 0
.}
proc bodyApplyImpulse*(body: RID; pos: Vector2; impulse: Vector2) {.
gcsafe, locks: 0
.}
proc bodyAddForce*(body: RID; offset: Vector2; force: Vector2) {.
gcsafe, locks: 0
.}
proc bodySetAxisVelocity*(body: RID; axisVelocity: Vector2) {.
gcsafe, locks: 0
.}
proc bodyAddCollisionException*(body: RID; exceptedBody: RID) {.
gcsafe, locks: 0
.}
proc bodyRemoveCollisionException*(body: RID; exceptedBody: RID) {.
gcsafe, locks: 0
.}
proc bodySetMaxContactsReported*(body: RID; amount: int64) {.
gcsafe, locks: 0
.}
proc bodyGetMaxContactsReported*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodySetOmitForceIntegration*(body: RID; enable: bool) {.
gcsafe, locks: 0
.}
proc bodyIsOmittingForceIntegration*(body: RID): bool {.
gcsafe, locks: 0
.}
proc bodySetForceIntegrationCallback*(body: RID; receiver: Object; methodd: string;
                                     userdata: Variant = newVariant()) {.
gcsafe, locks: 0
.}
proc bodyTestMotion*(body: RID; fromm: Transform2D; motion: Vector2;
                    margin: float64 = 0.08;
                    resultVal: Physics2DTestMotionResult = nil): bool {.
gcsafe, locks: 0
.}
proc jointSetParam*(joint: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc jointGetParam*(joint: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc pinJointCreate*(anchor: Vector2; bodyA: RID; bodyB: RID = initRID()): RID {.
gcsafe, locks: 0
.}
proc grooveJointCreate*(groove1A: Vector2; groove2A: Vector2; anchorB: Vector2;
                       bodyA: RID = initRID(); bodyB: RID = initRID()): RID {.
gcsafe, locks: 0
.}
proc dampedSpringJointCreate*(anchorA: Vector2; anchorB: Vector2; bodyA: RID;
                             bodyB: RID = initRID()): RID {.
gcsafe, locks: 0
.}
proc dampedStringJointSetParam*(joint: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc dampedStringJointGetParam*(joint: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc jointGetType*(joint: RID): int64 {.
gcsafe, locks: 0
.}
proc freeRid*(rid: RID) {.
gcsafe, locks: 0
.}
proc setActive*(active: bool) {.
gcsafe, locks: 0
.}
proc getProcessInfo*(processInfo: int64): int64 {.
gcsafe, locks: 0
.}