Interface ZOJointInterface
Defines a standard interface to access joints.
Namespace: ZO.Physics
Assembly: Unity.ZeroSim.dll
Syntax
public interface ZOJointInterface
Properties
| Improve this Doc View SourceConnectedBody
The connected rigid body. If null then it is the world.
Declaration
Rigidbody ConnectedBody { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Rigidbody |
ConnectedOccurrence
The connected ZOSim Occurrence. Being null does not necessarily mean anything.
Declaration
ZOSimOccurrence ConnectedOccurrence { get; }
Property Value
Type | Description |
---|---|
ZOSimOccurrence |
Effort
The effort that is applied to the joint (Nm or N)
Declaration
float Effort { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Name
Each joint is uniquely identified by its name.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Position
The joint position.
For a hinge/revolute it would be the angle in radians.
For a linear/prismatic it would be the distance from center in meters.
Declaration
float Position { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Type
Type of joint. For example "joint.hinge".
Declaration
string Type { get; }
Property Value
Type | Description |
---|---|
System.String |
Velocity
The velocity of the joint (rad/s or m/s)
Declaration
float Velocity { get; set; }
Property Value
Type | Description |
---|---|
System.Single |