Package org.box2d.proto
Interface Box2D.PbBodyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Box2D.PbBody,Box2D.PbBody.Builder
- Enclosing class:
- Box2D
public static interface Box2D.PbBodyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetActive()optional bool active = 56;booleangetAllowSleep()optional bool allow_sleep = 54;floatgetAngle()optional float angle = 11;floatgetAngularDamping()optional float angular_damping = 51;floatgetAngularVelocity()optional float angular_velocity = 13;booleangetAwake()optional bool awake = 55;booleangetBullet()optional bool bullet = 53;booleangetFixedRotation()optional bool fixed_rotation = 57;Box2D.PbFixturegetFixtures(int index)repeated .box2d.PbFixture fixtures = 100;intgetFixturesCount()repeated .box2d.PbFixture fixtures = 100;java.util.List<Box2D.PbFixture>getFixturesList()repeated .box2d.PbFixture fixtures = 100;Box2D.PbFixtureOrBuildergetFixturesOrBuilder(int index)repeated .box2d.PbFixture fixtures = 100;java.util.List<? extends Box2D.PbFixtureOrBuilder>getFixturesOrBuilderList()repeated .box2d.PbFixture fixtures = 100;floatgetGravityScale()optional float gravity_scale = 52;floatgetLinearDamping()configurationBox2D.PbVec2getLinearVelocity()optional .box2d.PbVec2 linear_velocity = 12;Box2D.PbVec2OrBuildergetLinearVelocityOrBuilder()optional .box2d.PbVec2 linear_velocity = 12;Box2D.PbVec2getPosition()physical attributesBox2D.PbVec2OrBuildergetPositionOrBuilder()physical attributeslonggetTag()optional int64 tag = 1;Box2D.PbBodyTypegetType()required .box2d.PbBodyType type = 2;booleanhasActive()optional bool active = 56;booleanhasAllowSleep()optional bool allow_sleep = 54;booleanhasAngle()optional float angle = 11;booleanhasAngularDamping()optional float angular_damping = 51;booleanhasAngularVelocity()optional float angular_velocity = 13;booleanhasAwake()optional bool awake = 55;booleanhasBullet()optional bool bullet = 53;booleanhasFixedRotation()optional bool fixed_rotation = 57;booleanhasGravityScale()optional float gravity_scale = 52;booleanhasLinearDamping()configurationbooleanhasLinearVelocity()optional .box2d.PbVec2 linear_velocity = 12;booleanhasPosition()physical attributesbooleanhasTag()optional int64 tag = 1;booleanhasType()required .box2d.PbBodyType type = 2;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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.PbBodyType type = 2;- Returns:
- Whether the type field is set.
-
getType
Box2D.PbBodyType getType()
required .box2d.PbBodyType type = 2;- Returns:
- The type.
-
hasPosition
boolean hasPosition()
physical attributes
optional .box2d.PbVec2 position = 10;- Returns:
- Whether the position field is set.
-
getPosition
Box2D.PbVec2 getPosition()
physical attributes
optional .box2d.PbVec2 position = 10;- Returns:
- The position.
-
getPositionOrBuilder
Box2D.PbVec2OrBuilder getPositionOrBuilder()
physical attributes
optional .box2d.PbVec2 position = 10;
-
hasAngle
boolean hasAngle()
optional float angle = 11;- Returns:
- Whether the angle field is set.
-
getAngle
float getAngle()
optional float angle = 11;- Returns:
- The angle.
-
hasLinearVelocity
boolean hasLinearVelocity()
optional .box2d.PbVec2 linear_velocity = 12;- Returns:
- Whether the linearVelocity field is set.
-
getLinearVelocity
Box2D.PbVec2 getLinearVelocity()
optional .box2d.PbVec2 linear_velocity = 12;- Returns:
- The linearVelocity.
-
getLinearVelocityOrBuilder
Box2D.PbVec2OrBuilder getLinearVelocityOrBuilder()
optional .box2d.PbVec2 linear_velocity = 12;
-
hasAngularVelocity
boolean hasAngularVelocity()
optional float angular_velocity = 13;- Returns:
- Whether the angularVelocity field is set.
-
getAngularVelocity
float getAngularVelocity()
optional float angular_velocity = 13;- Returns:
- The angularVelocity.
-
hasLinearDamping
boolean hasLinearDamping()
configuration
optional float linear_damping = 50;- Returns:
- Whether the linearDamping field is set.
-
getLinearDamping
float getLinearDamping()
configuration
optional float linear_damping = 50;- Returns:
- The linearDamping.
-
hasAngularDamping
boolean hasAngularDamping()
optional float angular_damping = 51;- Returns:
- Whether the angularDamping field is set.
-
getAngularDamping
float getAngularDamping()
optional float angular_damping = 51;- Returns:
- The angularDamping.
-
hasGravityScale
boolean hasGravityScale()
optional float gravity_scale = 52;- Returns:
- Whether the gravityScale field is set.
-
getGravityScale
float getGravityScale()
optional float gravity_scale = 52;- Returns:
- The gravityScale.
-
hasBullet
boolean hasBullet()
optional bool bullet = 53;- Returns:
- Whether the bullet field is set.
-
getBullet
boolean getBullet()
optional bool bullet = 53;- Returns:
- The bullet.
-
hasAllowSleep
boolean hasAllowSleep()
optional bool allow_sleep = 54;- Returns:
- Whether the allowSleep field is set.
-
getAllowSleep
boolean getAllowSleep()
optional bool allow_sleep = 54;- Returns:
- The allowSleep.
-
hasAwake
boolean hasAwake()
optional bool awake = 55;- Returns:
- Whether the awake field is set.
-
getAwake
boolean getAwake()
optional bool awake = 55;- Returns:
- The awake.
-
hasActive
boolean hasActive()
optional bool active = 56;- Returns:
- Whether the active field is set.
-
getActive
boolean getActive()
optional bool active = 56;- Returns:
- The active.
-
hasFixedRotation
boolean hasFixedRotation()
optional bool fixed_rotation = 57;- Returns:
- Whether the fixedRotation field is set.
-
getFixedRotation
boolean getFixedRotation()
optional bool fixed_rotation = 57;- Returns:
- The fixedRotation.
-
getFixturesList
java.util.List<Box2D.PbFixture> getFixturesList()
repeated .box2d.PbFixture fixtures = 100;
-
getFixtures
Box2D.PbFixture getFixtures(int index)
repeated .box2d.PbFixture fixtures = 100;
-
getFixturesCount
int getFixturesCount()
repeated .box2d.PbFixture fixtures = 100;
-
getFixturesOrBuilderList
java.util.List<? extends Box2D.PbFixtureOrBuilder> getFixturesOrBuilderList()
repeated .box2d.PbFixture fixtures = 100;
-
getFixturesOrBuilder
Box2D.PbFixtureOrBuilder getFixturesOrBuilder(int index)
repeated .box2d.PbFixture fixtures = 100;
-
-