Module physics_server

Search:
Group by:

Consts

JOINT_PIN* = 0'i64
JOINT_HINGE* = 1'i64
JOINT_SLIDER* = 2'i64
JOINT_CONE_TWIST* = 3'i64
JOINT_6DOF* = 4'i64
PIN_JOINT_BIAS* = 0'i64
PIN_JOINT_DAMPING* = 1'i64
PIN_JOINT_IMPULSE_CLAMP* = 2'i64
HINGE_JOINT_BIAS* = 0'i64
HINGE_JOINT_LIMIT_UPPER* = 1'i64
HINGE_JOINT_LIMIT_LOWER* = 2'i64
HINGE_JOINT_LIMIT_BIAS* = 3'i64
HINGE_JOINT_LIMIT_SOFTNESS* = 4'i64
HINGE_JOINT_LIMIT_RELAXATION* = 5'i64
HINGE_JOINT_MOTOR_TARGET_VELOCITY* = 6'i64
HINGE_JOINT_MOTOR_MAX_IMPULSE* = 7'i64
HINGE_JOINT_FLAG_USE_LIMIT* = 0'i64
HINGE_JOINT_FLAG_ENABLE_MOTOR* = 1'i64
SLIDER_JOINT_LINEAR_LIMIT_UPPER* = 0'i64
SLIDER_JOINT_LINEAR_LIMIT_LOWER* = 1'i64
SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS* = 2'i64
SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION* = 3'i64
SLIDER_JOINT_LINEAR_LIMIT_DAMPING* = 4'i64
SLIDER_JOINT_LINEAR_MOTION_SOFTNESS* = 5'i64
SLIDER_JOINT_LINEAR_MOTION_RESTITUTION* = 6'i64
SLIDER_JOINT_LINEAR_MOTION_DAMPING* = 7'i64
SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS* = 8'i64
SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION* = 9'i64
SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING* = 10'i64
SLIDER_JOINT_ANGULAR_LIMIT_UPPER* = 11'i64
SLIDER_JOINT_ANGULAR_LIMIT_LOWER* = 12'i64
SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS* = 13'i64
SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION* = 14'i64
SLIDER_JOINT_ANGULAR_LIMIT_DAMPING* = 15'i64
SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS* = 16'i64
SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION* = 17'i64
SLIDER_JOINT_ANGULAR_MOTION_DAMPING* = 18'i64
SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS* = 19'i64
SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION* = 20'i64
SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING* = 21'i64
SLIDER_JOINT_MAX* = 22'i64
CONE_TWIST_JOINT_SWING_SPAN* = 0'i64
CONE_TWIST_JOINT_TWIST_SPAN* = 1'i64
CONE_TWIST_JOINT_BIAS* = 2'i64
CONE_TWIST_JOINT_SOFTNESS* = 3'i64
CONE_TWIST_JOINT_RELAXATION* = 4'i64
G6DOF_JOINT_LINEAR_LOWER_LIMIT* = 0'i64
G6DOF_JOINT_LINEAR_UPPER_LIMIT* = 1'i64
G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS* = 2'i64
G6DOF_JOINT_LINEAR_RESTITUTION* = 3'i64
G6DOF_JOINT_LINEAR_DAMPING* = 4'i64
G6DOF_JOINT_ANGULAR_LOWER_LIMIT* = 5'i64
G6DOF_JOINT_ANGULAR_UPPER_LIMIT* = 6'i64
G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS* = 7'i64
G6DOF_JOINT_ANGULAR_DAMPING* = 8'i64
G6DOF_JOINT_ANGULAR_RESTITUTION* = 9'i64
G6DOF_JOINT_ANGULAR_FORCE_LIMIT* = 10'i64
G6DOF_JOINT_ANGULAR_ERP* = 11'i64
G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY* = 12'i64
G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT* = 13'i64
G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT* = 0'i64
G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT* = 1'i64
G6DOF_JOINT_FLAG_ENABLE_MOTOR* = 2'i64
SHAPE_PLANE* = 0'i64
SHAPE_RAY* = 1'i64
SHAPE_SPHERE* = 2'i64
SHAPE_BOX* = 3'i64
SHAPE_CAPSULE* = 4'i64
SHAPE_CONVEX_POLYGON* = 5'i64
SHAPE_CONCAVE_POLYGON* = 6'i64
SHAPE_HEIGHTMAP* = 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_GRAVITY_SCALE* = 3'i64
BODY_PARAM_ANGULAR_DAMP* = 5'i64
BODY_PARAM_LINEAR_DAMP* = 4'i64
BODY_PARAM_MAX* = 6'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
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): PhysicsDirectSpaceState {.
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: Transform) {.
gcsafe, locks: 0
.}
proc areaSetShape*(area: RID; shapeIdx: int64; shape: RID) {.
gcsafe, locks: 0
.}
proc areaSetShapeTransform*(area: RID; shapeIdx: int64; transform: Transform) {.
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): Transform {.
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: Transform) {.
gcsafe, locks: 0
.}
proc areaGetParam*(area: RID; param: int64): Variant {.
gcsafe, locks: 0
.}
proc areaGetTransform*(area: RID): Transform {.
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 areaSetRayPickable*(area: RID; enable: bool) {.
gcsafe, locks: 0
.}
proc areaIsRayPickable*(area: RID): bool {.
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 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 bodyAddShape*(body: RID; shape: RID; transform: Transform) {.
gcsafe, locks: 0
.}
proc bodySetShape*(body: RID; shapeIdx: int64; shape: RID) {.
gcsafe, locks: 0
.}
proc bodySetShapeTransform*(body: RID; shapeIdx: int64; transform: Transform) {.
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): Transform {.
gcsafe, locks: 0
.}
proc bodyRemoveShape*(body: RID; shapeIdx: int64) {.
gcsafe, locks: 0
.}
proc bodyClearShapes*(body: RID) {.
gcsafe, locks: 0
.}
proc bodyAttachObjectInstanceId*(body: RID; id: int64) {.
gcsafe, locks: 0
.}
proc bodyGetObjectInstanceId*(body: RID): int64 {.
gcsafe, locks: 0
.}
proc bodySetEnableContinuousCollisionDetection*(body: RID; enable: bool) {.
gcsafe, locks: 0
.}
proc bodyIsContinuousCollisionDetectionEnabled*(body: RID): bool {.
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: Vector3; impulse: Vector3) {.
gcsafe, locks: 0
.}
proc bodyApplyTorqueImpulse*(body: RID; impulse: Vector3) {.
gcsafe, locks: 0
.}
proc bodySetAxisVelocity*(body: RID; axisVelocity: Vector3) {.
gcsafe, locks: 0
.}
proc bodySetAxisLock*(body: RID; axis: int64) {.
gcsafe, locks: 0
.}
proc bodyGetAxisLock*(body: RID): int64 {.
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 bodySetRayPickable*(body: RID; enable: bool) {.
gcsafe, locks: 0
.}
proc bodyIsRayPickable*(body: RID): bool {.
gcsafe, locks: 0
.}
proc jointCreatePin*(bodyA: RID; localA: Vector3; bodyB: RID; localB: Vector3): RID {.
gcsafe, locks: 0
.}
proc pinJointSetParam*(joint: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc pinJointGetParam*(joint: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc pinJointSetLocalA*(joint: RID; localA: Vector3) {.
gcsafe, locks: 0
.}
proc pinJointGetLocalA*(joint: RID): Vector3 {.
gcsafe, locks: 0
.}
proc pinJointSetLocalB*(joint: RID; localB: Vector3) {.
gcsafe, locks: 0
.}
proc pinJointGetLocalB*(joint: RID): Vector3 {.
gcsafe, locks: 0
.}
proc jointCreateHinge*(bodyA: RID; hingeA: Transform; bodyB: RID; hingeB: Transform): RID {.
gcsafe, locks: 0
.}
proc hingeJointSetParam*(joint: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc hingeJointGetParam*(joint: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc hingeJointSetFlag*(joint: RID; flag: int64; enabled: bool) {.
gcsafe, locks: 0
.}
proc hingeJointGetFlag*(joint: RID; flag: int64): bool {.
gcsafe, locks: 0
.}
proc jointCreateSlider*(bodyA: RID; localRefA: Transform; bodyB: RID;
                       localRefB: Transform): RID {.
gcsafe, locks: 0
.}
proc sliderJointSetParam*(joint: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc sliderJointGetParam*(joint: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc jointCreateConeTwist*(bodyA: RID; localRefA: Transform; bodyB: RID;
                          localRefB: Transform): RID {.
gcsafe, locks: 0
.}
proc coneTwistJointSetParam*(joint: RID; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc coneTwistJointGetParam*(joint: RID; param: int64): float64 {.
gcsafe, locks: 0
.}
proc jointGetType*(joint: RID): int64 {.
gcsafe, locks: 0
.}
proc jointSetSolverPriority*(joint: RID; priority: int64) {.
gcsafe, locks: 0
.}
proc jointGetSolverPriority*(joint: RID): int64 {.
gcsafe, locks: 0
.}
proc jointCreateGeneric6dof*(bodyA: RID; localRefA: Transform; bodyB: RID;
                            localRefB: Transform): RID {.
gcsafe, locks: 0
.}
proc generic6dofJointSetParam*(joint: RID; axis: int64; param: int64; value: float64) {.
gcsafe, locks: 0
.}
proc generic6dofJointGetParam*(joint: RID; axis: int64; param: int64): float64 {.
gcsafe, locks: 0
.}
proc generic6dofJointSetFlag*(joint: RID; axis: int64; flag: int64; enable: bool) {.
gcsafe, locks: 0
.}
proc generic6dofJointGetFlag*(joint: RID; axis: int64; flag: int64): bool {.
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
.}