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
Modifier and TypeMethodDescriptionbooleanoptional bool active = 56;booleanoptional bool allow_sleep = 54;floatgetAngle()optional float angle = 11;floatoptional float angular_damping = 51;floatoptional float angular_velocity = 13;booleangetAwake()optional bool awake = 55;booleanoptional bool bullet = 53;booleanoptional bool fixed_rotation = 57;getFixtures(int index) repeated .box2d.PbFixture fixtures = 100;intrepeated .box2d.PbFixture fixtures = 100;java.util.List<Box2D.PbFixture> repeated .box2d.PbFixture fixtures = 100;getFixturesOrBuilder(int index) repeated .box2d.PbFixture fixtures = 100;java.util.List<? extends Box2D.PbFixtureOrBuilder> repeated .box2d.PbFixture fixtures = 100;floatoptional float gravity_scale = 52;floatconfigurationoptional .box2d.PbVec2 linear_velocity = 12;optional .box2d.PbVec2 linear_velocity = 12;physical attributesphysical attributeslonggetTag()optional int64 tag = 1;getType()required .box2d.PbBodyType type = 2;booleanoptional bool active = 56;booleanoptional bool allow_sleep = 54;booleanhasAngle()optional float angle = 11;booleanoptional float angular_damping = 51;booleanoptional float angular_velocity = 13;booleanhasAwake()optional bool awake = 55;booleanoptional bool bullet = 53;booleanoptional bool fixed_rotation = 57;booleanoptional float gravity_scale = 52;booleanconfigurationbooleanoptional .box2d.PbVec2 linear_velocity = 12;booleanphysical attributesbooleanhasTag()optional int64 tag = 1;booleanhasType()required .box2d.PbBodyType type = 2;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.PbBodyType type = 2;- Returns:
- Whether the type field is set.
-
getType
-
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
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
repeated .box2d.PbFixture fixtures = 100;
-