Interface Box2D.PbJointOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Box2D.PbJoint, Box2D.PbJoint.Builder
Enclosing class:
Box2D

public static interface Box2D.PbJointOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasTag

      boolean hasTag()
      optional int64 tag = 1;
      Returns:
      Whether the tag field is set.
    • getTag

      long getTag()
      optional int64 tag = 1;
      Returns:
      The tag.
    • hasType

      boolean hasType()
      required .box2d.PbJointType type = 2;
      Returns:
      Whether the type field is set.
    • getType

      required .box2d.PbJointType type = 2;
      Returns:
      The type.
    • hasBodyA

      boolean hasBodyA()
      optional int32 body_a = 3;
      Returns:
      Whether the bodyA field is set.
    • getBodyA

      int getBodyA()
      optional int32 body_a = 3;
      Returns:
      The bodyA.
    • hasBodyB

      boolean hasBodyB()
      optional int32 body_b = 4;
      Returns:
      Whether the bodyB field is set.
    • getBodyB

      int getBodyB()
      optional int32 body_b = 4;
      Returns:
      The bodyB.
    • hasCollideConnected

      boolean hasCollideConnected()
      optional bool collideConnected = 5;
      Returns:
      Whether the collideConnected field is set.
    • getCollideConnected

      boolean getCollideConnected()
      optional bool collideConnected = 5;
      Returns:
      The collideConnected.
    • hasLocalAnchorA

      boolean hasLocalAnchorA()
      optional .box2d.PbVec2 local_anchor_a = 6;
      Returns:
      Whether the localAnchorA field is set.
    • getLocalAnchorA

      Box2D.PbVec2 getLocalAnchorA()
      optional .box2d.PbVec2 local_anchor_a = 6;
      Returns:
      The localAnchorA.
    • getLocalAnchorAOrBuilder

      Box2D.PbVec2OrBuilder getLocalAnchorAOrBuilder()
      optional .box2d.PbVec2 local_anchor_a = 6;
    • hasLocalAnchorB

      boolean hasLocalAnchorB()
      optional .box2d.PbVec2 local_anchor_b = 7;
      Returns:
      Whether the localAnchorB field is set.
    • getLocalAnchorB

      Box2D.PbVec2 getLocalAnchorB()
      optional .box2d.PbVec2 local_anchor_b = 7;
      Returns:
      The localAnchorB.
    • getLocalAnchorBOrBuilder

      Box2D.PbVec2OrBuilder getLocalAnchorBOrBuilder()
      optional .box2d.PbVec2 local_anchor_b = 7;
    • hasRefAngle

      boolean hasRefAngle()
       revolute, prismatic, joint
       
      optional float ref_angle = 10;
      Returns:
      Whether the refAngle field is set.
    • getRefAngle

      float getRefAngle()
       revolute, prismatic, joint
       
      optional float ref_angle = 10;
      Returns:
      The refAngle.
    • hasEnableLimit

      boolean hasEnableLimit()
       revolute, prismatic
       
      optional bool enable_limit = 12;
      Returns:
      Whether the enableLimit field is set.
    • getEnableLimit

      boolean getEnableLimit()
       revolute, prismatic
       
      optional bool enable_limit = 12;
      Returns:
      The enableLimit.
    • hasLowerLimit

      boolean hasLowerLimit()
       revolute, prismatic
       
      optional float lower_limit = 13;
      Returns:
      Whether the lowerLimit field is set.
    • getLowerLimit

      float getLowerLimit()
       revolute, prismatic
       
      optional float lower_limit = 13;
      Returns:
      The lowerLimit.
    • hasUpperLimit

      boolean hasUpperLimit()
       revolute, prismatic
       
      optional float upper_limit = 14;
      Returns:
      Whether the upperLimit field is set.
    • getUpperLimit

      float getUpperLimit()
       revolute, prismatic
       
      optional float upper_limit = 14;
      Returns:
      The upperLimit.
    • hasEnableMotor

      boolean hasEnableMotor()
       revolute, prismatic, wheel
       
      optional bool enable_motor = 15;
      Returns:
      Whether the enableMotor field is set.
    • getEnableMotor

      boolean getEnableMotor()
       revolute, prismatic, wheel
       
      optional bool enable_motor = 15;
      Returns:
      The enableMotor.
    • hasMotorSpeed

      boolean hasMotorSpeed()
       revolute, prismatic, wheel
       
      optional float motor_speed = 16;
      Returns:
      Whether the motorSpeed field is set.
    • getMotorSpeed

      float getMotorSpeed()
       revolute, prismatic, wheel
       
      optional float motor_speed = 16;
      Returns:
      The motorSpeed.
    • hasMaxMotorTorque

      boolean hasMaxMotorTorque()
       revolute, wheel
       
      optional float max_motor_torque = 17;
      Returns:
      Whether the maxMotorTorque field is set.
    • getMaxMotorTorque

      float getMaxMotorTorque()
       revolute, wheel
       
      optional float max_motor_torque = 17;
      Returns:
      The maxMotorTorque.
    • hasLocalAxisA

      boolean hasLocalAxisA()
       prismatic, wheel
       
      optional .box2d.PbVec2 local_axis_a = 20;
      Returns:
      Whether the localAxisA field is set.
    • getLocalAxisA

      Box2D.PbVec2 getLocalAxisA()
       prismatic, wheel
       
      optional .box2d.PbVec2 local_axis_a = 20;
      Returns:
      The localAxisA.
    • getLocalAxisAOrBuilder

      Box2D.PbVec2OrBuilder getLocalAxisAOrBuilder()
       prismatic, wheel
       
      optional .box2d.PbVec2 local_axis_a = 20;
    • hasMaxMotorForce

      boolean hasMaxMotorForce()
       prismatic
       
      optional float max_motor_force = 21;
      Returns:
      Whether the maxMotorForce field is set.
    • getMaxMotorForce

      float getMaxMotorForce()
       prismatic
       
      optional float max_motor_force = 21;
      Returns:
      The maxMotorForce.
    • hasLength

      boolean hasLength()
       distance
       
      optional float length = 30;
      Returns:
      Whether the length field is set.
    • getLength

      float getLength()
       distance
       
      optional float length = 30;
      Returns:
      The length.
    • hasFrequency

      boolean hasFrequency()
       distance, mouse, wheel, weld, con vol
       
      optional float frequency = 31;
      Returns:
      Whether the frequency field is set.
    • getFrequency

      float getFrequency()
       distance, mouse, wheel, weld, con vol
       
      optional float frequency = 31;
      Returns:
      The frequency.
    • hasDampingRatio

      boolean hasDampingRatio()
       distance, mouse, wheel, weld, col vol
       
      optional float damping_ratio = 32;
      Returns:
      Whether the dampingRatio field is set.
    • getDampingRatio

      float getDampingRatio()
       distance, mouse, wheel, weld, col vol
       
      optional float damping_ratio = 32;
      Returns:
      The dampingRatio.
    • hasGroundAnchorA

      boolean hasGroundAnchorA()
       pulley
       
      optional .box2d.PbVec2 ground_anchor_a = 40;
      Returns:
      Whether the groundAnchorA field is set.
    • getGroundAnchorA

      Box2D.PbVec2 getGroundAnchorA()
       pulley
       
      optional .box2d.PbVec2 ground_anchor_a = 40;
      Returns:
      The groundAnchorA.
    • getGroundAnchorAOrBuilder

      Box2D.PbVec2OrBuilder getGroundAnchorAOrBuilder()
       pulley
       
      optional .box2d.PbVec2 ground_anchor_a = 40;
    • hasGroundAnchorB

      boolean hasGroundAnchorB()
       pulley
       
      optional .box2d.PbVec2 ground_anchor_b = 41;
      Returns:
      Whether the groundAnchorB field is set.
    • getGroundAnchorB

      Box2D.PbVec2 getGroundAnchorB()
       pulley
       
      optional .box2d.PbVec2 ground_anchor_b = 41;
      Returns:
      The groundAnchorB.
    • getGroundAnchorBOrBuilder

      Box2D.PbVec2OrBuilder getGroundAnchorBOrBuilder()
       pulley
       
      optional .box2d.PbVec2 ground_anchor_b = 41;
    • hasLengthA

      boolean hasLengthA()
       pulley
       
      optional float length_a = 42;
      Returns:
      Whether the lengthA field is set.
    • getLengthA

      float getLengthA()
       pulley
       
      optional float length_a = 42;
      Returns:
      The lengthA.
    • hasLengthB

      boolean hasLengthB()
       pulley
       
      optional float length_b = 43;
      Returns:
      Whether the lengthB field is set.
    • getLengthB

      float getLengthB()
       pulley
       
      optional float length_b = 43;
      Returns:
      The lengthB.
    • hasRatio

      boolean hasRatio()
       pulley, gear
       
      optional float ratio = 44;
      Returns:
      Whether the ratio field is set.
    • getRatio

      float getRatio()
       pulley, gear
       
      optional float ratio = 44;
      Returns:
      The ratio.
    • hasTarget

      boolean hasTarget()
       mouse
       
      optional .box2d.PbVec2 target = 50;
      Returns:
      Whether the target field is set.
    • getTarget

      Box2D.PbVec2 getTarget()
       mouse
       
      optional .box2d.PbVec2 target = 50;
      Returns:
      The target.
    • getTargetOrBuilder

      Box2D.PbVec2OrBuilder getTargetOrBuilder()
       mouse
       
      optional .box2d.PbVec2 target = 50;
    • hasMaxForce

      boolean hasMaxForce()
       mouse, friction, rope
       
      optional float max_force = 51;
      Returns:
      Whether the maxForce field is set.
    • getMaxForce

      float getMaxForce()
       mouse, friction, rope
       
      optional float max_force = 51;
      Returns:
      The maxForce.
    • hasJoint1

      boolean hasJoint1()
       gear
       
      optional int32 joint1 = 61;
      Returns:
      Whether the joint1 field is set.
    • getJoint1

      int getJoint1()
       gear
       
      optional int32 joint1 = 61;
      Returns:
      The joint1.
    • hasJoint2

      boolean hasJoint2()
       gear
       
      optional int32 joint2 = 62;
      Returns:
      Whether the joint2 field is set.
    • getJoint2

      int getJoint2()
       gear
       
      optional int32 joint2 = 62;
      Returns:
      The joint2.
    • hasMaxTorque

      boolean hasMaxTorque()
       friction
       
      optional float max_torque = 90;
      Returns:
      Whether the maxTorque field is set.
    • getMaxTorque

      float getMaxTorque()
       friction
       
      optional float max_torque = 90;
      Returns:
      The maxTorque.
    • hasMaxLength

      boolean hasMaxLength()
       rope
       
      optional float max_length = 100;
      Returns:
      Whether the maxLength field is set.
    • getMaxLength

      float getMaxLength()
       rope
       
      optional float max_length = 100;
      Returns:
      The maxLength.
    • getBodiesList

      java.util.List<java.lang.Integer> getBodiesList()
       con vol
       
      repeated int32 bodies = 110;
      Returns:
      A list containing the bodies.
    • getBodiesCount

      int getBodiesCount()
       con vol
       
      repeated int32 bodies = 110;
      Returns:
      The count of bodies.
    • getBodies

      int getBodies(int index)
       con vol
       
      repeated int32 bodies = 110;
      Parameters:
      index - The index of the element to return.
      Returns:
      The bodies at the given index.
    • getJointsList

      java.util.List<java.lang.Integer> getJointsList()
       con vol
       
      repeated int32 joints = 111;
      Returns:
      A list containing the joints.
    • getJointsCount

      int getJointsCount()
       con vol
       
      repeated int32 joints = 111;
      Returns:
      The count of joints.
    • getJoints

      int getJoints(int index)
       con vol
       
      repeated int32 joints = 111;
      Parameters:
      index - The index of the element to return.
      Returns:
      The joints at the given index.