MeasureForce measures forces and torques acting on Unity joints. More...

Public Attributes | |
Vector3 | Force |
Current force vector in Newtons acting on the joint. | |
Vector3 | Torque |
Current torque vector in Newton-meters acting on the joint. | |
float | AbsForce |
Absolute magnitude of the force vector in Newtons. | |
float | AbsTorque |
Absolute magnitude of the torque vector in Newton-meters. | |
PLCInputFloat | ForceX |
PLC signal output for force X component in Newtons. | |
PLCInputFloat | ForceY |
PLC signal output for force Y component in Newtons. | |
PLCInputFloat | ForceZ |
PLC signal output for force Z component in Newtons. | |
PLCInputFloat | ForceAbs |
PLC signal output for absolute force magnitude in Newtons. | |
PLCInputFloat | TorqueX |
PLC signal output for torque X component in Newton-meters. | |
PLCInputFloat | TorqueY |
PLC signal output for torque Y component in Newton-meters. | |
PLCInputFloat | TorqueZ |
PLC signal output for torque Z component in Newton-meters. | |
PLCInputFloat | TorqueAbs |
PLC signal output for absolute torque magnitude in Newton-meters. | |
![]() | |
List< BehaviorInterfaceConnection > | ConnectionInfo |
![]() | |
string | Name |
The name of the component if it should be different from the GameObject name. | |
ActiveOnly | Active |
GameObject | FromTemplate |
realvirtualController | realvirtualController |
bool | HideNonG44Components |
bool | SceneIsAdditive |
bool | ForceStop |
Additional Inherited Members | |
![]() | |
enum | ActiveOnly { Always , Connected , Disconnected , Never , DontChange } |
![]() | |
new List< BehaviorInterfaceConnection > | GetConnections () |
Returns a list of behavior interface connections for this component. | |
new List< Signal > | GetSignals () |
Returns a list of connected signals for this component. | |
![]() | |
void | PreStartSim () |
Is called by the realvirtualController before the component is started. | |
void | StartSim () |
Is called by the realvirtualController to start or stop the component. | |
void | StopSim () |
Vector3 | DirectionToVector (DIRECTION direction) |
Transfers the direction enumeration to a vector. | |
DIRECTION | VectorToDirection (bool torotatoin, Vector3 vector) |
Transfers a vector to the direction enumeration. | |
float | GetLocalScale (Transform thetransform, DIRECTION direction) |
List< BehaviorInterfaceConnection > | UpdateConnectionInfo () |
List< Signal > | GetConnectedSignals () |
void | SetVisibility (bool visibility) |
Sets the visibility of this object including all subobjects. | |
List< BehaviorInterfaceConnection > | GetConnections () |
List< Signal > | GetSignals () |
GameObject | GetChildByName (string name) |
Gets a child by name. | |
List< GameObject > | GetChildsByName (string name) |
Gets all child by name. | |
GameObject | GetChildByNameAlsoHidden (string name) |
List< GameObject > | GetAllMeshesWithGroup (string group) |
List< GameObject > | GetAllWithGroup (string group) |
List< GameObject > | GetAllWithGroups (List< string > groups) |
List< GameObject > | GetAllMeshesWithGroups (List< string > groups) |
List< string > | GetMyGroups () |
List< GameObject > | GetMeshesWithSameGroups () |
List< GameObject > | GetAllWithSameGroups () |
MeshRenderer | GetMeshRenderer () |
Gets the mesh renderers in the childrens. | |
void | SetCollider (bool enabled) |
sets the collider in all child objects | |
void | ErrorMessage (string message) |
Displays an error message. | |
void | ChangeConnectionMode (bool isconnected) |
void | Log (string message) |
Logs a message. | |
void | Log (string message, object obj) |
Logs a message with a relation to an object. | |
void | Warning (string message, object obj) |
Logs a warinng with a relation to an object. | |
void | Error (string message, object obj) |
Logs an error with a relation to an object. | |
void | Error (string message) |
Logs an error. | |
GameObject | DebugPosition (string debugname, Vector3 position, Quaternion quaternation, float scale) |
Displays a gizmo for debugging positions. | |
void | SetFreezePosition (bool enabled) |
Freezes all child components to the current poosition. | |
void | SetRbConstraints (RigidbodyConstraints constraints) |
virtual void | AwakeAlsoDeactivated () |
![]() | |
static bool | DirectionIsLinear (DIRECTION direction) |
Gets back if the direction is linear or a rotation. | |
![]() | |
bool | hidename () |
bool | hideactiveonly () |
virtual void | OnStopSim () |
virtual void | OnPreStartSim () |
virtual void | OnStartSim () |
MU | GetTopOfMu (GameObject obj) |
Gets the top of an MU component (the first MU script going up in the hierarchy) | |
void | InitGame4Automation () |
Initialiates the components and gets the reference to the realvirtualController in the scene. | |
virtual void | AfterAwake () |
void | Awake () |
![]() | |
GameObject | gameObject [get] |
Detailed Description
MeasureForce measures forces and torques acting on Unity joints.
This component reads force and torque values from a joint component and outputs them through PLC signals. Useful for monitoring forces in mechanical simulations and detecting load conditions.
Member Data Documentation
◆ AbsForce
float realvirtual.MeasureForce.AbsForce |
Absolute magnitude of the force vector in Newtons.
◆ AbsTorque
float realvirtual.MeasureForce.AbsTorque |
Absolute magnitude of the torque vector in Newton-meters.
◆ Force
Vector3 realvirtual.MeasureForce.Force |
Current force vector in Newtons acting on the joint.
◆ ForceAbs
PLCInputFloat realvirtual.MeasureForce.ForceAbs |
PLC signal output for absolute force magnitude in Newtons.
◆ ForceX
PLCInputFloat realvirtual.MeasureForce.ForceX |
PLC signal output for force X component in Newtons.
◆ ForceY
PLCInputFloat realvirtual.MeasureForce.ForceY |
PLC signal output for force Y component in Newtons.
◆ ForceZ
PLCInputFloat realvirtual.MeasureForce.ForceZ |
PLC signal output for force Z component in Newtons.
◆ Torque
Vector3 realvirtual.MeasureForce.Torque |
Current torque vector in Newton-meters acting on the joint.
◆ TorqueAbs
PLCInputFloat realvirtual.MeasureForce.TorqueAbs |
PLC signal output for absolute torque magnitude in Newton-meters.
◆ TorqueX
PLCInputFloat realvirtual.MeasureForce.TorqueX |
PLC signal output for torque X component in Newton-meters.
◆ TorqueY
PLCInputFloat realvirtual.MeasureForce.TorqueY |
PLC signal output for torque Y component in Newton-meters.
◆ TorqueZ
PLCInputFloat realvirtual.MeasureForce.TorqueZ |
PLC signal output for torque Z component in Newton-meters.