PixPhys

PixPhys

Not enough ratings
Sockets Documentation (English)
By BobberyJoe
A guide to the inputs, outputs and functionality of each node in the sockets editor for Pixphys. Note that all information provided is just what I can determine as preexisting documentation is scarce and Russian. So, if you see any errors or can help fill in the gaps, please let me know. This guide is not complete.
   
Award
Favorite
Favorited
Unfavorite
Basics
Data Types
Boolean (Bool)
Posseses two states: True or False, or equivalently: On or Off
Numerical (Num)
Accepts any Real number up to a few decimal places, such as: 5.42
String (Str)
Any textual input, including letters, punctuation, special characters and numbers. Note that math can only be performed on numbers that are stored in the Numerical data type, so if for example, you try to use the terminal part to input a number into your contraption, you would need to convert it from String to Numerical before any operations could be performed on it.
Vector (Vec)
A two dimensional vector which is defined by a x and y value, representing a direction and a magnitude.
Composite (Comp)
Can store any type of data, and multiple different pieces of data if they are of different types.

Node Types
Some nodes have multiple types to accomodate different data types or perform more operations. To change a nodes type, right click on any of the free space on the node and select the desired type from the drop down menu.
UTILS
Advanced Counter

Blinker

Counter

Delay
Types: 4
Boolean Type

Input 1 (Bool)
Output 1 (Bool)
Numerical Type
Input 1 (Num)
Output 1 (Num)
String Type
Input 1 (Str)
Output 1 (Str)
Vector Type
Input 1 (Vec)
Output 1 (Vec)
Function
Holds the value of Input 1 and only outputs it after a delay, which can be changed by right clicking on the node. Delay therefore must be set when the vehicle is built and cannot be dynamically adjusted.

Extender
Input 1 (Bool)
Output 1 (Bool)
Function
Continues to output a True value after a True value swaps to False for a period of time equal to the delay which can be changed by right clicking on the node.

Gate
Types: 4
Boolean Type

Input 1 (Bool)
Input 2 (Bool)
Output 1 (Bool)
Numerical Type
Input 1 (Num)
Input 2 (Bool)
Output 1 (Num)
String Type
Input 1 (Str)
Input 2 (Bool)
Output 1 (Str)
Vector Type
Input 1 (Vec)
Input 2 (Bool)
Output 1 (Vec)
Function
Only allows Input 1 to be outputted to Output 1 if Input 2 is currently True.

Observer
Input 1 (Bool)
Output 1 (Bool)
Function
Sends a short True value when Input 1 changes state.

PID

Pulse

Randomiser
Input 1 (Bool)
Input 2 (Num)
Input 3 (Num)
Output 1 (Num)
Function
Generates a random number x such that Input 2 <= x <= Input 3. If Input 1 is True, x will be an integer, otherwise a real number with 6 decimal places. The number will be regenerated if any of the inputs change, otherwise it will remain constant.

Switch Box
Types: 4
Boolean Type

Input 1 (Bool)
Input 2 (Bool)
Input 3 (Bool)
Output 1 (Bool)
Numerical Type
Input 1 (Num)
Input 2 (Num)
Input 3 (Bool)
Output 1 (Num)
String Type
Input 1 (Str)
Input 2 (Str)
Input 3 (Bool)
Output 1 (Str)
Vector Type
Input 1 (Vec)
Input 2 (Vec)
Input 3 (Bool)
Output 1 (Vec)
Function
The third input determines which of the inputs should be returned in Output 1 according to the
following rules:
If Input 3 is True, then Input 1 is returned
If Input 3 is False, then Input 2 is returned
Example
Input 1: 1
Input 2: 0
Input 3: True
Output 1: 1

Toggle
STRING
At
Input 1 (Str)
Input 2 (Num)
Output 1 (Str)
Function
Returns the character found at the position determined by Input 2 in the string defined by Input 1.
Note that Input 2 is defined such that 0 returns the first character of the string.
Example
Input 1: "Hello World!"
Input 2: 7
Output 1: "o"

Case
Input 1 (Str)
Input 2 (Bool)
Output 1 (Str)
Function
Replaces the characters of the string Input 1, depending on the following rules:
If Input 2 is True, Input 1 is made upper case and returned
If Input 2 is False, Input 1 is made lower case and returned
Example
Input 1: "Hello World!"
Input 2: True
Output 1: "HELLO WORLD!"

Char
Input 1 (Num)
Output 1 (Str)
Function
Returns the text character that corresponds to Input 1 according to the ASCII table.
ASCII Table: https://commons.wikimedia.org/wiki/File:ASCII-Table-wide.svg
Example
Input 1: 97
Output 1: "a"

Concat
Input 1 (Str)
Input 2 (Str)
Output 1 (Str)
Function
Returns a single string which is composed of Input 1 followed by Input 2. Note that if a space
is not included at the end of Input 1 or at the beginning of Input 2, the two strings will be
smashed together with no space between them.
Example
Input 1: "Hello "
Input 2: "World!"
Output 1: "Hello World!"

Contains
Input 1 (Str)
Input 2 (Str)
Output 1 (Bool)
Function
Looks for a given string in another string and returns an output according to the following rules:
If Input 1 contains Input 2, then Output 1 is True
If Input 1 does not contain Input 2, then Output 1 is False
Note that it is case sensitive.
Example
Input 1: "Hello World!"
Input 2: "World"
Output 1: True

Ends with
Input 1 (Str)
Input 2 (Str)
Output 1 (Bool)
Function
Looks for a given string at the end of another string and returns an output according to the
following rules:
If Input 1 ends with Input 2, then Output 1 is True
If Input 1 does not end with Input 2, then Output 1 is False
Note that it is case sensitive, and it can check for any number of characters as long as they
are consecutive and contain the last character in the string.
Example
Input 1: "Hello World!"
Input 2: "d!"
Output 1: True

Equals
Input 1 (Str)
Input 2 (Str)
Output 1 (Bool)
Function
Checks if Input 1 is identical to Input 2, returning True if it is, and False if it isn't.
Note that it is case sensitive and checks all characters in the string.
Example
Input 1: "Hello World!"
Input 2: "hello world!"
Output 1: False

Length
Input 1 (Str)
Output 1 (Num)
Function
Returns the number of characters in the string defined by Input 1.
Example
Input 1: 'Hello World!"
Output 1: 12

Replace
Input 1 (Str)
Input 2 (Str)
Input 3 (Str)
Output 1 (Str)
Function
Replaces all instances of Input 2 found in Input 1 with Input 3.
Example
Input 1: "Hello World!"
Input 2: "l"
Input 3: "m"
Output 1: "Hemmo Wormd!"

Starts with
Input 1 (Str)
Input 2 (Str)
Output 1 (Bool)
Function
Looks for a given string at the sart of another string and returns an output according to the
following rules:
If Input 1 starts with Input 2, then Output 1 is True
If Input 1 does not start with Input 2, then Output 1 is False
Note that it is case sensitive, and it can check for any number of characters as long as they
are consecutive and contain the first character in the string.
Example
Input 1: "Hello World!"
Input 2: "Hell"
Output 1: True

To numerical
Input 1 (Str)
Output 1 (Num)
Function
Converts a string value into a numerical value if the string is composed only of numbers.
Example
Input 1: "72"
Output 1: 72

To string
Types: 3
Boolean Type
Input 1 (Bool)
Output 1 (Str)
Numerical Type
Input 1 (Num)
Output 1 (Str)
Vector Type
Input 1 (Vec)
Output 1 (Str)
Function
Converts non string values into a string to be shown on displays for example.
Example
Input 1: 93
Output 1: "93"
LOGIC
AND
Input 1 (Bool)
Input 2 (Bool)
Output 1 (Bool)
Function
Functions like the logic gate, which uses the following rules:
Input 1
Input 2
Output 1
0
0
0
1
0
0
0
1
0
1
1
1

NOT
Input 1 (Bool)
Output 1 (Bool)
Function
Functions like the logic gate, which uses the following rules:
Input 1
Output 1
0
1
1
0

OR
Input 1 (Bool)
Input 2 (Bool)
Output 1 (Bool)
Function
Functions like the logic gate, which inverts the value of the input:
Input 1
Input 2
Output 1
0
0
0
1
0
1
0
1
1
1
1
1

XOR
Input 1 (Bool)
Input 2 (Bool)
Output 1 (Bool)
Function
Functions like the logic gate, which uses the following rules:
Input 1
Input 2
Output 1
0
0
0
1
0
1
0
1
1
1
1
0
MATH
Abs
Input 1 (Num)
Output 1 (Num)
Function
Returns Input 1 if it is positive, or -1 multiplied by Input 1 if it is negative.
Example
Input 1: -7
Output 1: 7

Add
Input 1 (Num)
Input 2 (Num)
Output 1 (Num)
Function
Returns Input 1 added to Input 2.
Example
Input 1: 2
Input 2: 3
Output 1: 5

Clamp
Input 1 (Num)
Input 2 (Num)
Input 3 (Num)
Output 1 (Num)
Function
Input 2 is the minimum value and Input 3 is the maximum value. Output 1 is defined as being Input 1 if Input 2 < Input 1 < Input 3. However, if Input 1 is less than the minimum, Output 1 returns the minimum and if Input 1 is greater than the maximum, Output 1 returns the maximum.

Example
Input 1: 7
Input 2: 0
Input 3: 5
Output 1: 5

Deg2rad
Input 1 (Num)
Output 1 (Num)
Function
Outputs the radian equivalent of the degree value defined by Input 1.
Example
Input 1: 90
Output 1: 0.5

Delta
Input 1 (Num)
Output 1 (Num)
Function
Outputs the difference between Input 1 currently and its value 1 tick ago.
Example
Input 1 (Now): 90
Input 1 (Previously): 82
Output 1: 8

Divide
Input 1 (Num)
Input 2 (Num)
Output 1 (Num)
Function
Returns Input 1 divided by Input 2
Example
Input 1: 4
Input 2: 2
Output 1: 2

Function {x, y, z}


Lerp


Multiply
Input 1 (Num)
Input 2 (Num)
Output 1 (Num)
Function
Returns product of Input 1 and Input 2
Example
Input 1: 4
Input 2: 3
Output 1: 12

Negative
Input 1 (Num)
Output 1 (Num)
Function
Outputs the negative value of Input 1.
Example
Input 1: -2
Output 1: 2

Power
Input 1 (Num)
Input 2 (Num)
Output 1 (Num)
Function
Returns the Nth power of Input 1, where N is Input 2.
Example
Input 1: 4
Input 2: 2
Output 1: 16

Rad2deg
Input 1 (Num)
Output 1 (Num)
Function
Outputs the degree equivalent of the radian value defined by Input 1.
Example
Input 1: 0.5
Output 1: 90

Root
Input 1 (Num)
Input 2 (Num)
Output 1 (Num)
Function
Returns the Nth root of Input 1, where N is Input 2.
Example
Input 1: 16
Input 2: 2
Output 1: 4

Round
Input 1 (Num)
Input 2 (Num)
Output 1 (Num)
Function
Returns Input 1 rounded to Input 2 decimal places.
Example
Input 1: 2.65234
Input 2: 2
Output 1: 2.65

Subtract
Input 1 (Num)
Input 2 (Num)
Output 1 (Num)
Function
Returns Input 1 subtracted from Input 2. Note the order, which is counter intuitively reversed.
Example
Input 1: 2
Input 2: 3
Output 1: 1
VECTOR
Add
Input 1 (Vec)
Input 2 (Vec)
Output 1 (Vec)
Function
Outputs the sum of vectors Input 1 and Input 2.

Angle
Input 1 (Vec)
Input 2 (Vec)
Output 1 (Num)
Function
Outputs the smallest angle in degrees between vectors Input 1 and Input 2.

Distance
Input 1 (Vec)
Input 2 (Vec)
Output 1 (Num)
Function
Adds Input 1 to Input 2 to generate a new vector, and then returns its magnitude.

Divide

Dot

Equal

Lerp

Magnitude
Input 1 (Vec)
Output 1 (Num)
Function
Outputs the magnitude of of vector Input 1.

Multiply

Normalise
Input 1 (Vec)
Output 1 (Vec)
Function
Reduces the magnitude of vector Input 1 to 1.

Perpendicular
Input 1 (Vec)
Output 1 (Vec)
Function
Generates a vector perpendicular to Input 1 in the anticlockwise direction of equal magnitude.

Reflect

Split
Input 1 (Vec)
Output 1 (Num)
Output 2 (Num)
Function
Splits the vector Input 1 into its x coordinate through Output 1 and its y coordinate through Output 2.

Sqr magnitude

Subtract

Vector
Input 1 (Num)
Input 2 (Num)
Output 1 (Vec)
Function
Generates a vector with x coordinate Input 1 and y coordinate Input 2.
COMPARISON
Equal
Input 1 (Num)
Input 2 (Num)
Output 1 (Bool)
Function
Returns True if Input 1 equals Input 2, and False otherwise.
Example
Input 1: 4
Input 2: 3
Output 1: False

Greater than
Input 1 (Num)
Input 2 (Num)
Output 1 (Bool)
Function
Returns True if Input 1 is greater than Input 2, and False otherwise.
Example
Input 1: 4
Input 2: 3
Output 1: True

Less than
Input 1 (Num)
Input 2 (Num)
Output 1 (Bool)
Function
Returns True if Input 1 is less than Input 2, and False otherwise.
Example
Input 1: 4
Input 2: 3
Output 1: False

Threshold
Input 1 (Num)
Input 2 (Num)
Input 3 (Num)
Output 1 (Bool)
Function
Similar to clamp. Input 2 is a minimum and Input 3 is a maximum. If Input 2 < Input 1 < Input 3 then Output 1 is True, otherwise it is False
Example
Input 1: 4
Input 2: 0
Input 3: 5
Output 1: True
COMPOSITE
Read
Types: 4
Boolean Type

Input 1 (Comp)
Output 1 (Bool)
Numerical Type
Input 1 (Comp)
Output 1 (Num)
String Type
Input 1 (Comp)
Output 1 (Str)
Vector Type
Input 1 (Comp)
Output 1 (Vec)
Function
Extracts values of the given datatype from the composite Input 1 and returns just that component of the Input. By right clicking on the node, there is an option to set the channel. If the composite value is going to be sent over an antenna, this channel should be the same on both the Write node of the sending antenna, and the read node of the receiving antenna.

Write
Types: 4
Boolean Type

Input 1 (Comp)
Input 2 (Bool)
Output 1 (Comp)
Numerical Type
Input 1 (Comp)
Input 2 (Num)
Output 1 (Comp)
String Type
Input 1 (Comp)
Input 2 (Str)
Output 1 (Comp)
Vector Type
Input 1 (Comp)
Input 2 (Vec)
Output 1 (Comp)
Function
Converts Input 2 into a composite value and merges it with Input 1, to output a single composite type output that contains both Inputs. By right clicking on the node, there is an option to set the channel. If the composite value is going to be sent over an antenna, this channel should be the same on both the Write node of the sending antenna, and the read node of the receiving antenna.
TRIGONOMETRY
Acos
Input 1 (Num)
Output 1 (Num)
Function
Outputs the arccos value of Input 1. Note that the output is in degrees.
Example
Input 1: 0
Output 1: 90

Asin
Input 1 (Num)
Output 1 (Num)
Function
Outputs the arcsin value of Input 1. Note that the output is in degrees.
Example
Input 1: -1
Output 1: 270

Atan
Input 1 (Num)
Output 1 (Num)
Function
Outputs the arctan value of Input 1. Note that the output is in degrees.
Example
Input 1: 1
Output 1: 45

Atan2
Input 1 (Vec)
Output 1 (Num)
Function
Uncertain.

Cos
Input 1 (Num)
Output 1 (Num)
Function
Outputs the cos value of Input 1. Note that the input is in degrees.
Example
Input 1: 180
Output 1: -1

Sin
Input 1 (Num)
Output 1 (Num)
Function
Outputs the sin value of Input 1. Note that the input is in degrees.
Example
Input 1: 90
Output 1: 1

Tan
Input 1 (Num)
Output 1 (Num)
Function
Outputs the tan value of Input 1. Note that the input is in degrees.
Example
Input 1: 45
Output 1: 1
PART NODES
---The following nodes only appear when their physical counterparts are placed in the workbench, and they are sorted depending on which side(s) of the nodes has ports.---

*PART INPUTS have ports exclusively on the right
*PART OUTPUTS have ports exclusively on the left
*PART LOGIC have ports on both sides
PART INPUTS
Amperemeter

Angle sensor

Angular speed sensor

Barometer

Button

Clock

Contact sensor

Cursor sensor
Output 1 (Vec)
Function
Outputs the vector that goes from the world origin to the current cursor position.

Distance sensor

Fog sensor

Generator

Joystick

Key trigger

Large tank
Output 1 (Num)
Output 2 (Num)
Function
Output 1 is the current amount of stored fuel, and Output 2 is the maximum capacity of the tank.

Laser speedometer

Linear speed sensor

Medium Tank
Output 1 (Num)
Output 2 (Num)
Function
Output 1 is the current amount of stored fuel, and Output 2 is the maximum capacity of the tank.

Precipitation sensor

Small tank
Output 1 (Num)
Output 2 (Num)
Function
Output 1 is the current amount of stored fuel, and Output 2 is the maximum capacity of the tank.

Solar Panel

Tachometer

Temperature sensor

Terminal

Winch
PART OUTPUTS
Advanced stabiliser

Advanced wing

Banshee

Chart display
Input 1 (Bool)
Input 2 (Num)
Function
Displays numerical values from Input 2 over time as long as the display is enabled using Input 1. No axis values are displayed and the maximum y value changes dynamically to accommodate the largest value.

Clutch

Colour display

Configurable explosive
Input 1 (Bool)
Function
Setting Input 1 to True detonates the explosive.

C4
Input 1 (Bool)
Function
Setting Input 1 to True detonates the explosive.

Dial
Input 1 (Bool)
Input 2 (Str)
Input 3 (Str)
Function
Input 1 is the minimum value, Input 2 is the maximum, and Input 3 displays as the position of the needle between those two values. Uses include visually displaying fuel in a tank.

Display
Input 1 (Bool)
Input 2 (Str)
Function
Displays text from Input 2 as long as the display is enabled using Input 1.

Electric relay

Flare launcher

Fuel valve

Fuse

Gear box

Gyroscope
Input 1 (Bool)
Input 2 (Str)
Input 3 (Str)
Function
Input 1 determines whether the gyroscope is enabled or not. Input 2 is some form of scalar of the strength with which the gyroscope tries to reach its target strength. Input 3 is the target angle, which is measured in degrees such that -180 < Input 3 < 180 from the vertical unit vector. Input 3 > 0 refers to an angle counterclockwise from straight up and an Input 3 < 0 refers to an angle clockwise from straight up.

helicopter Propeller

Inertial gyroscope

Jet engine
Input 1 (Num)
Function
Input 1 is the scalar that is multiplied by the max force of the engine to determine it's thrust at any given time. It is clamped between 0 and 1. The max force can be changed by going to the Workbench and right clicking on the part, and then selecting Set Max Force.

Lamp

Lua display

Magnet

Mass generator

Motor

Parachute deployer

RCS

Rocket engine
Input 1 (Num)
Function
Input 1 is the scalar that is multiplied by the max force of the engine to determine it's thrust at any given time. It is clamped between 0 and 1. The max force can be changed by going to the Workbench and right clicking on the part, and then selecting Set Max Force.

Servo
Input 1 (Num)
Function
Input 1 is the target angle, which is measured in degrees such that -180 < Input 3 < 180 from the vertical unit vector. Input 3 > 0 refers to an angle counterclockwise from straight up and an Input 3 < 0 refers to an angle clockwise from straight up.


Small rocket engine
Input 1 (Num)
Function
Input 1 is the scalar that is multiplied by the max force of the engine to determine it's thrust at any given time. It is clamped between 0 and 1. The max force can be changed by going to the Workbench and right clicking on the part, and then selecting Set Max Force.

Small wheel

Solid rocket booster

Sparkular

Speech module

Spotlight

Sticky module

Turbofan engine
Input 1 (Num)
Function
Input 1 is the scalar that is multiplied by the max force of the engine to determine it's thrust at any given time. It is clamped between 0 and 1. The max force can be changed by going to the Workbench and right clicking on the part, and then selecting Set Max Force.

Tweeter

Vertical Display
Input 1 (Bool)
Input 2 (Str)
Input 3 (Str)
Function
Input 1 is the minimum value, Input 2 is the maximum, and Input 3 displays as a fraction between those two values. Uses include visually displaying fuel in a tank.

Wheel
PART LOGIC
Antenna
Input 1 (Num)
Input 2 (Bool)
Input 1 (Comp)
Output 1 (Comp)
Function
Input 1 does something probably. Input 2 determines whether the antenna is set to send or receive, with an input of True makes the antenna send data, and an input of False sets it to receive. Input 3 is the data to be sent if Input 2 is set to True. Whereas Output 1 is the data received if Input 2 is set to False.

Button with screen

Coal engine

Electric port

Fluid port

GPS
Input 1 (Bool)
Output 1 (Vec)
Function
Input 1 enables or disables the GPS, and Output 1 returns the vector that goes from the worlds origin to the GPS's current position.

Large engine

Lua processor

Machine gun

Medium engine

Piston

Radar
Input 1 (Bool)
Input 2 (Num)
Output 1 (Bool)
Output 2 (Num)
Output 3 (Num)
Function
Input 1 enables and disables the radar, and Input 2 determines the speed in which the radar scans its FOV to find a target. (This is unconfirmed and may also be related to the range of directions that the radar will search, and inversely its maximum distance.) Output 1 returns True if a target is found, and False otherwise. Output 2 returns the angle between the positive x unit vector and the given target. Note that this value is relative to the orientation of the radar, and so if it is placed lying down (at an angle of 90 degrees), Output 2 will return the angle between the target and the positive y unit vector. Output 3 returns the distance between the target and the radar.

Radiator

Rotor

Small engine

Socket port