Package org.box2d.proto
Class Box2D.PbJoint
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- org.box2d.proto.Box2D.PbJoint
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,Box2D.PbJointOrBuilder
- Enclosing class:
- Box2D
public static final class Box2D.PbJoint extends com.google.protobuf.GeneratedMessage implements Box2D.PbJointOrBuilder
Protobuf typebox2d.PbJoint- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBox2D.PbJoint.BuilderProtobuf typebox2d.PbJoint-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetBodies(int index)con volintgetBodiesCount()con voljava.util.List<java.lang.Integer>getBodiesList()con volintgetBodyA()optional int32 body_a = 3;intgetBodyB()optional int32 body_b = 4;booleangetCollideConnected()optional bool collideConnected = 5;floatgetDampingRatio()distance, mouse, wheel, weld, col volstatic Box2D.PbJointgetDefaultInstance()Box2D.PbJointgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnableLimit()revolute, prismaticbooleangetEnableMotor()revolute, prismatic, wheelfloatgetFrequency()distance, mouse, wheel, weld, con volBox2D.PbVec2getGroundAnchorA()pulleyBox2D.PbVec2OrBuildergetGroundAnchorAOrBuilder()pulleyBox2D.PbVec2getGroundAnchorB()pulleyBox2D.PbVec2OrBuildergetGroundAnchorBOrBuilder()pulleyintgetJoint1()gearintgetJoint2()gearintgetJoints(int index)con volintgetJointsCount()con voljava.util.List<java.lang.Integer>getJointsList()con volfloatgetLength()distancefloatgetLengthA()pulleyfloatgetLengthB()pulleyBox2D.PbVec2getLocalAnchorA()optional .box2d.PbVec2 local_anchor_a = 6;Box2D.PbVec2OrBuildergetLocalAnchorAOrBuilder()optional .box2d.PbVec2 local_anchor_a = 6;Box2D.PbVec2getLocalAnchorB()optional .box2d.PbVec2 local_anchor_b = 7;Box2D.PbVec2OrBuildergetLocalAnchorBOrBuilder()optional .box2d.PbVec2 local_anchor_b = 7;Box2D.PbVec2getLocalAxisA()prismatic, wheelBox2D.PbVec2OrBuildergetLocalAxisAOrBuilder()prismatic, wheelfloatgetLowerLimit()revolute, prismaticfloatgetMaxForce()mouse, friction, ropefloatgetMaxLength()ropefloatgetMaxMotorForce()prismaticfloatgetMaxMotorTorque()revolute, wheelfloatgetMaxTorque()frictionfloatgetMotorSpeed()revolute, prismatic, wheelcom.google.protobuf.Parser<Box2D.PbJoint>getParserForType()floatgetRatio()pulley, gearfloatgetRefAngle()revolute, prismatic, jointintgetSerializedSize()longgetTag()optional int64 tag = 1;Box2D.PbVec2getTarget()mouseBox2D.PbVec2OrBuildergetTargetOrBuilder()mouseBox2D.PbJointTypegetType()required .box2d.PbJointType type = 2;floatgetUpperLimit()revolute, prismaticbooleanhasBodyA()optional int32 body_a = 3;booleanhasBodyB()optional int32 body_b = 4;booleanhasCollideConnected()optional bool collideConnected = 5;booleanhasDampingRatio()distance, mouse, wheel, weld, col volbooleanhasEnableLimit()revolute, prismaticbooleanhasEnableMotor()revolute, prismatic, wheelbooleanhasFrequency()distance, mouse, wheel, weld, con volbooleanhasGroundAnchorA()pulleybooleanhasGroundAnchorB()pulleyinthashCode()booleanhasJoint1()gearbooleanhasJoint2()gearbooleanhasLength()distancebooleanhasLengthA()pulleybooleanhasLengthB()pulleybooleanhasLocalAnchorA()optional .box2d.PbVec2 local_anchor_a = 6;booleanhasLocalAnchorB()optional .box2d.PbVec2 local_anchor_b = 7;booleanhasLocalAxisA()prismatic, wheelbooleanhasLowerLimit()revolute, prismaticbooleanhasMaxForce()mouse, friction, ropebooleanhasMaxLength()ropebooleanhasMaxMotorForce()prismaticbooleanhasMaxMotorTorque()revolute, wheelbooleanhasMaxTorque()frictionbooleanhasMotorSpeed()revolute, prismatic, wheelbooleanhasRatio()pulley, gearbooleanhasRefAngle()revolute, prismatic, jointbooleanhasTag()optional int64 tag = 1;booleanhasTarget()mousebooleanhasType()required .box2d.PbJointType type = 2;booleanhasUpperLimit()revolute, prismaticprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Box2D.PbJoint.BuildernewBuilder()static Box2D.PbJoint.BuildernewBuilder(Box2D.PbJoint prototype)Box2D.PbJoint.BuildernewBuilderForType()protected Box2D.PbJoint.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static Box2D.PbJointparseDelimitedFrom(java.io.InputStream input)static Box2D.PbJointparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbJointparseFrom(byte[] data)static Box2D.PbJointparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbJointparseFrom(com.google.protobuf.ByteString data)static Box2D.PbJointparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbJointparseFrom(com.google.protobuf.CodedInputStream input)static Box2D.PbJointparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbJointparseFrom(java.io.InputStream input)static Box2D.PbJointparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Box2D.PbJointparseFrom(java.nio.ByteBuffer data)static Box2D.PbJointparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Box2D.PbJoint>parser()Box2D.PbJoint.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tag_
private long tag_
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
type_
private int type_
-
BODY_A_FIELD_NUMBER
public static final int BODY_A_FIELD_NUMBER
- See Also:
- Constant Field Values
-
bodyA_
private int bodyA_
-
BODY_B_FIELD_NUMBER
public static final int BODY_B_FIELD_NUMBER
- See Also:
- Constant Field Values
-
bodyB_
private int bodyB_
-
COLLIDECONNECTED_FIELD_NUMBER
public static final int COLLIDECONNECTED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
collideConnected_
private boolean collideConnected_
-
LOCAL_ANCHOR_A_FIELD_NUMBER
public static final int LOCAL_ANCHOR_A_FIELD_NUMBER
- See Also:
- Constant Field Values
-
localAnchorA_
private Box2D.PbVec2 localAnchorA_
-
LOCAL_ANCHOR_B_FIELD_NUMBER
public static final int LOCAL_ANCHOR_B_FIELD_NUMBER
- See Also:
- Constant Field Values
-
localAnchorB_
private Box2D.PbVec2 localAnchorB_
-
REF_ANGLE_FIELD_NUMBER
public static final int REF_ANGLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
refAngle_
private float refAngle_
-
ENABLE_LIMIT_FIELD_NUMBER
public static final int ENABLE_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
enableLimit_
private boolean enableLimit_
-
LOWER_LIMIT_FIELD_NUMBER
public static final int LOWER_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
lowerLimit_
private float lowerLimit_
-
UPPER_LIMIT_FIELD_NUMBER
public static final int UPPER_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
upperLimit_
private float upperLimit_
-
ENABLE_MOTOR_FIELD_NUMBER
public static final int ENABLE_MOTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
enableMotor_
private boolean enableMotor_
-
MOTOR_SPEED_FIELD_NUMBER
public static final int MOTOR_SPEED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
motorSpeed_
private float motorSpeed_
-
MAX_MOTOR_TORQUE_FIELD_NUMBER
public static final int MAX_MOTOR_TORQUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxMotorTorque_
private float maxMotorTorque_
-
LOCAL_AXIS_A_FIELD_NUMBER
public static final int LOCAL_AXIS_A_FIELD_NUMBER
- See Also:
- Constant Field Values
-
localAxisA_
private Box2D.PbVec2 localAxisA_
-
MAX_MOTOR_FORCE_FIELD_NUMBER
public static final int MAX_MOTOR_FORCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxMotorForce_
private float maxMotorForce_
-
LENGTH_FIELD_NUMBER
public static final int LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
length_
private float length_
-
FREQUENCY_FIELD_NUMBER
public static final int FREQUENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
frequency_
private float frequency_
-
DAMPING_RATIO_FIELD_NUMBER
public static final int DAMPING_RATIO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
dampingRatio_
private float dampingRatio_
-
GROUND_ANCHOR_A_FIELD_NUMBER
public static final int GROUND_ANCHOR_A_FIELD_NUMBER
- See Also:
- Constant Field Values
-
groundAnchorA_
private Box2D.PbVec2 groundAnchorA_
-
GROUND_ANCHOR_B_FIELD_NUMBER
public static final int GROUND_ANCHOR_B_FIELD_NUMBER
- See Also:
- Constant Field Values
-
groundAnchorB_
private Box2D.PbVec2 groundAnchorB_
-
LENGTH_A_FIELD_NUMBER
public static final int LENGTH_A_FIELD_NUMBER
- See Also:
- Constant Field Values
-
lengthA_
private float lengthA_
-
LENGTH_B_FIELD_NUMBER
public static final int LENGTH_B_FIELD_NUMBER
- See Also:
- Constant Field Values
-
lengthB_
private float lengthB_
-
RATIO_FIELD_NUMBER
public static final int RATIO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ratio_
private float ratio_
-
TARGET_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
target_
private Box2D.PbVec2 target_
-
MAX_FORCE_FIELD_NUMBER
public static final int MAX_FORCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxForce_
private float maxForce_
-
JOINT1_FIELD_NUMBER
public static final int JOINT1_FIELD_NUMBER
- See Also:
- Constant Field Values
-
joint1_
private int joint1_
-
JOINT2_FIELD_NUMBER
public static final int JOINT2_FIELD_NUMBER
- See Also:
- Constant Field Values
-
joint2_
private int joint2_
-
MAX_TORQUE_FIELD_NUMBER
public static final int MAX_TORQUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxTorque_
private float maxTorque_
-
MAX_LENGTH_FIELD_NUMBER
public static final int MAX_LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxLength_
private float maxLength_
-
BODIES_FIELD_NUMBER
public static final int BODIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
bodies_
private com.google.protobuf.Internal.IntList bodies_
-
JOINTS_FIELD_NUMBER
public static final int JOINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
joints_
private com.google.protobuf.Internal.IntList joints_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Box2D.PbJoint DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Box2D.PbJoint> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTag
public boolean hasTag()
optional int64 tag = 1;- Specified by:
hasTagin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the tag field is set.
-
getTag
public long getTag()
optional int64 tag = 1;- Specified by:
getTagin interfaceBox2D.PbJointOrBuilder- Returns:
- The tag.
-
hasType
public boolean hasType()
required .box2d.PbJointType type = 2;- Specified by:
hasTypein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the type field is set.
-
getType
public Box2D.PbJointType getType()
required .box2d.PbJointType type = 2;- Specified by:
getTypein interfaceBox2D.PbJointOrBuilder- Returns:
- The type.
-
hasBodyA
public boolean hasBodyA()
optional int32 body_a = 3;- Specified by:
hasBodyAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the bodyA field is set.
-
getBodyA
public int getBodyA()
optional int32 body_a = 3;- Specified by:
getBodyAin interfaceBox2D.PbJointOrBuilder- Returns:
- The bodyA.
-
hasBodyB
public boolean hasBodyB()
optional int32 body_b = 4;- Specified by:
hasBodyBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the bodyB field is set.
-
getBodyB
public int getBodyB()
optional int32 body_b = 4;- Specified by:
getBodyBin interfaceBox2D.PbJointOrBuilder- Returns:
- The bodyB.
-
hasCollideConnected
public boolean hasCollideConnected()
optional bool collideConnected = 5;- Specified by:
hasCollideConnectedin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the collideConnected field is set.
-
getCollideConnected
public boolean getCollideConnected()
optional bool collideConnected = 5;- Specified by:
getCollideConnectedin interfaceBox2D.PbJointOrBuilder- Returns:
- The collideConnected.
-
hasLocalAnchorA
public boolean hasLocalAnchorA()
optional .box2d.PbVec2 local_anchor_a = 6;- Specified by:
hasLocalAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the localAnchorA field is set.
-
getLocalAnchorA
public Box2D.PbVec2 getLocalAnchorA()
optional .box2d.PbVec2 local_anchor_a = 6;- Specified by:
getLocalAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- The localAnchorA.
-
getLocalAnchorAOrBuilder
public Box2D.PbVec2OrBuilder getLocalAnchorAOrBuilder()
optional .box2d.PbVec2 local_anchor_a = 6;- Specified by:
getLocalAnchorAOrBuilderin interfaceBox2D.PbJointOrBuilder
-
hasLocalAnchorB
public boolean hasLocalAnchorB()
optional .box2d.PbVec2 local_anchor_b = 7;- Specified by:
hasLocalAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the localAnchorB field is set.
-
getLocalAnchorB
public Box2D.PbVec2 getLocalAnchorB()
optional .box2d.PbVec2 local_anchor_b = 7;- Specified by:
getLocalAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- The localAnchorB.
-
getLocalAnchorBOrBuilder
public Box2D.PbVec2OrBuilder getLocalAnchorBOrBuilder()
optional .box2d.PbVec2 local_anchor_b = 7;- Specified by:
getLocalAnchorBOrBuilderin interfaceBox2D.PbJointOrBuilder
-
hasRefAngle
public boolean hasRefAngle()
revolute, prismatic, joint
optional float ref_angle = 10;- Specified by:
hasRefAnglein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the refAngle field is set.
-
getRefAngle
public float getRefAngle()
revolute, prismatic, joint
optional float ref_angle = 10;- Specified by:
getRefAnglein interfaceBox2D.PbJointOrBuilder- Returns:
- The refAngle.
-
hasEnableLimit
public boolean hasEnableLimit()
revolute, prismatic
optional bool enable_limit = 12;- Specified by:
hasEnableLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the enableLimit field is set.
-
getEnableLimit
public boolean getEnableLimit()
revolute, prismatic
optional bool enable_limit = 12;- Specified by:
getEnableLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- The enableLimit.
-
hasLowerLimit
public boolean hasLowerLimit()
revolute, prismatic
optional float lower_limit = 13;- Specified by:
hasLowerLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the lowerLimit field is set.
-
getLowerLimit
public float getLowerLimit()
revolute, prismatic
optional float lower_limit = 13;- Specified by:
getLowerLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- The lowerLimit.
-
hasUpperLimit
public boolean hasUpperLimit()
revolute, prismatic
optional float upper_limit = 14;- Specified by:
hasUpperLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the upperLimit field is set.
-
getUpperLimit
public float getUpperLimit()
revolute, prismatic
optional float upper_limit = 14;- Specified by:
getUpperLimitin interfaceBox2D.PbJointOrBuilder- Returns:
- The upperLimit.
-
hasEnableMotor
public boolean hasEnableMotor()
revolute, prismatic, wheel
optional bool enable_motor = 15;- Specified by:
hasEnableMotorin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the enableMotor field is set.
-
getEnableMotor
public boolean getEnableMotor()
revolute, prismatic, wheel
optional bool enable_motor = 15;- Specified by:
getEnableMotorin interfaceBox2D.PbJointOrBuilder- Returns:
- The enableMotor.
-
hasMotorSpeed
public boolean hasMotorSpeed()
revolute, prismatic, wheel
optional float motor_speed = 16;- Specified by:
hasMotorSpeedin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the motorSpeed field is set.
-
getMotorSpeed
public float getMotorSpeed()
revolute, prismatic, wheel
optional float motor_speed = 16;- Specified by:
getMotorSpeedin interfaceBox2D.PbJointOrBuilder- Returns:
- The motorSpeed.
-
hasMaxMotorTorque
public boolean hasMaxMotorTorque()
revolute, wheel
optional float max_motor_torque = 17;- Specified by:
hasMaxMotorTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxMotorTorque field is set.
-
getMaxMotorTorque
public float getMaxMotorTorque()
revolute, wheel
optional float max_motor_torque = 17;- Specified by:
getMaxMotorTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxMotorTorque.
-
hasLocalAxisA
public boolean hasLocalAxisA()
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;- Specified by:
hasLocalAxisAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the localAxisA field is set.
-
getLocalAxisA
public Box2D.PbVec2 getLocalAxisA()
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;- Specified by:
getLocalAxisAin interfaceBox2D.PbJointOrBuilder- Returns:
- The localAxisA.
-
getLocalAxisAOrBuilder
public Box2D.PbVec2OrBuilder getLocalAxisAOrBuilder()
prismatic, wheel
optional .box2d.PbVec2 local_axis_a = 20;- Specified by:
getLocalAxisAOrBuilderin interfaceBox2D.PbJointOrBuilder
-
hasMaxMotorForce
public boolean hasMaxMotorForce()
prismatic
optional float max_motor_force = 21;- Specified by:
hasMaxMotorForcein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxMotorForce field is set.
-
getMaxMotorForce
public float getMaxMotorForce()
prismatic
optional float max_motor_force = 21;- Specified by:
getMaxMotorForcein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxMotorForce.
-
hasLength
public boolean hasLength()
distance
optional float length = 30;- Specified by:
hasLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the length field is set.
-
getLength
public float getLength()
distance
optional float length = 30;- Specified by:
getLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- The length.
-
hasFrequency
public boolean hasFrequency()
distance, mouse, wheel, weld, con vol
optional float frequency = 31;- Specified by:
hasFrequencyin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the frequency field is set.
-
getFrequency
public float getFrequency()
distance, mouse, wheel, weld, con vol
optional float frequency = 31;- Specified by:
getFrequencyin interfaceBox2D.PbJointOrBuilder- Returns:
- The frequency.
-
hasDampingRatio
public boolean hasDampingRatio()
distance, mouse, wheel, weld, col vol
optional float damping_ratio = 32;- Specified by:
hasDampingRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the dampingRatio field is set.
-
getDampingRatio
public float getDampingRatio()
distance, mouse, wheel, weld, col vol
optional float damping_ratio = 32;- Specified by:
getDampingRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- The dampingRatio.
-
hasGroundAnchorA
public boolean hasGroundAnchorA()
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;- Specified by:
hasGroundAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the groundAnchorA field is set.
-
getGroundAnchorA
public Box2D.PbVec2 getGroundAnchorA()
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;- Specified by:
getGroundAnchorAin interfaceBox2D.PbJointOrBuilder- Returns:
- The groundAnchorA.
-
getGroundAnchorAOrBuilder
public Box2D.PbVec2OrBuilder getGroundAnchorAOrBuilder()
pulley
optional .box2d.PbVec2 ground_anchor_a = 40;- Specified by:
getGroundAnchorAOrBuilderin interfaceBox2D.PbJointOrBuilder
-
hasGroundAnchorB
public boolean hasGroundAnchorB()
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;- Specified by:
hasGroundAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the groundAnchorB field is set.
-
getGroundAnchorB
public Box2D.PbVec2 getGroundAnchorB()
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;- Specified by:
getGroundAnchorBin interfaceBox2D.PbJointOrBuilder- Returns:
- The groundAnchorB.
-
getGroundAnchorBOrBuilder
public Box2D.PbVec2OrBuilder getGroundAnchorBOrBuilder()
pulley
optional .box2d.PbVec2 ground_anchor_b = 41;- Specified by:
getGroundAnchorBOrBuilderin interfaceBox2D.PbJointOrBuilder
-
hasLengthA
public boolean hasLengthA()
pulley
optional float length_a = 42;- Specified by:
hasLengthAin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the lengthA field is set.
-
getLengthA
public float getLengthA()
pulley
optional float length_a = 42;- Specified by:
getLengthAin interfaceBox2D.PbJointOrBuilder- Returns:
- The lengthA.
-
hasLengthB
public boolean hasLengthB()
pulley
optional float length_b = 43;- Specified by:
hasLengthBin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the lengthB field is set.
-
getLengthB
public float getLengthB()
pulley
optional float length_b = 43;- Specified by:
getLengthBin interfaceBox2D.PbJointOrBuilder- Returns:
- The lengthB.
-
hasRatio
public boolean hasRatio()
pulley, gear
optional float ratio = 44;- Specified by:
hasRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the ratio field is set.
-
getRatio
public float getRatio()
pulley, gear
optional float ratio = 44;- Specified by:
getRatioin interfaceBox2D.PbJointOrBuilder- Returns:
- The ratio.
-
hasTarget
public boolean hasTarget()
mouse
optional .box2d.PbVec2 target = 50;- Specified by:
hasTargetin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the target field is set.
-
getTarget
public Box2D.PbVec2 getTarget()
mouse
optional .box2d.PbVec2 target = 50;- Specified by:
getTargetin interfaceBox2D.PbJointOrBuilder- Returns:
- The target.
-
getTargetOrBuilder
public Box2D.PbVec2OrBuilder getTargetOrBuilder()
mouse
optional .box2d.PbVec2 target = 50;- Specified by:
getTargetOrBuilderin interfaceBox2D.PbJointOrBuilder
-
hasMaxForce
public boolean hasMaxForce()
mouse, friction, rope
optional float max_force = 51;- Specified by:
hasMaxForcein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxForce field is set.
-
getMaxForce
public float getMaxForce()
mouse, friction, rope
optional float max_force = 51;- Specified by:
getMaxForcein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxForce.
-
hasJoint1
public boolean hasJoint1()
gear
optional int32 joint1 = 61;- Specified by:
hasJoint1in interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the joint1 field is set.
-
getJoint1
public int getJoint1()
gear
optional int32 joint1 = 61;- Specified by:
getJoint1in interfaceBox2D.PbJointOrBuilder- Returns:
- The joint1.
-
hasJoint2
public boolean hasJoint2()
gear
optional int32 joint2 = 62;- Specified by:
hasJoint2in interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the joint2 field is set.
-
getJoint2
public int getJoint2()
gear
optional int32 joint2 = 62;- Specified by:
getJoint2in interfaceBox2D.PbJointOrBuilder- Returns:
- The joint2.
-
hasMaxTorque
public boolean hasMaxTorque()
friction
optional float max_torque = 90;- Specified by:
hasMaxTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxTorque field is set.
-
getMaxTorque
public float getMaxTorque()
friction
optional float max_torque = 90;- Specified by:
getMaxTorquein interfaceBox2D.PbJointOrBuilder- Returns:
- The maxTorque.
-
hasMaxLength
public boolean hasMaxLength()
rope
optional float max_length = 100;- Specified by:
hasMaxLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- Whether the maxLength field is set.
-
getMaxLength
public float getMaxLength()
rope
optional float max_length = 100;- Specified by:
getMaxLengthin interfaceBox2D.PbJointOrBuilder- Returns:
- The maxLength.
-
getBodiesList
public java.util.List<java.lang.Integer> getBodiesList()
con vol
repeated int32 bodies = 110;- Specified by:
getBodiesListin interfaceBox2D.PbJointOrBuilder- Returns:
- A list containing the bodies.
-
getBodiesCount
public int getBodiesCount()
con vol
repeated int32 bodies = 110;- Specified by:
getBodiesCountin interfaceBox2D.PbJointOrBuilder- Returns:
- The count of bodies.
-
getBodies
public int getBodies(int index)
con vol
repeated int32 bodies = 110;- Specified by:
getBodiesin interfaceBox2D.PbJointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bodies at the given index.
-
getJointsList
public java.util.List<java.lang.Integer> getJointsList()
con vol
repeated int32 joints = 111;- Specified by:
getJointsListin interfaceBox2D.PbJointOrBuilder- Returns:
- A list containing the joints.
-
getJointsCount
public int getJointsCount()
con vol
repeated int32 joints = 111;- Specified by:
getJointsCountin interfaceBox2D.PbJointOrBuilder- Returns:
- The count of joints.
-
getJoints
public int getJoints(int index)
con vol
repeated int32 joints = 111;- Specified by:
getJointsin interfaceBox2D.PbJointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The joints at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Box2D.PbJoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbJoint parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbJoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbJoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbJoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbJoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Box2D.PbJoint parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Box2D.PbJoint parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Box2D.PbJoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Box2D.PbJoint parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Box2D.PbJoint parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Box2D.PbJoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Box2D.PbJoint.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Box2D.PbJoint.Builder newBuilder()
-
newBuilder
public static Box2D.PbJoint.Builder newBuilder(Box2D.PbJoint prototype)
-
toBuilder
public Box2D.PbJoint.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Box2D.PbJoint.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static Box2D.PbJoint getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Box2D.PbJoint> parser()
-
getParserForType
public com.google.protobuf.Parser<Box2D.PbJoint> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public Box2D.PbJoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-