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 boolean
getActive()
optional bool active = 56;
boolean
getAllowSleep()
optional bool allow_sleep = 54;
float
getAngle()
optional float angle = 11;
float
getAngularDamping()
optional float angular_damping = 51;
float
getAngularVelocity()
optional float angular_velocity = 13;
boolean
getAwake()
optional bool awake = 55;
boolean
getBullet()
optional bool bullet = 53;
boolean
getFixedRotation()
optional bool fixed_rotation = 57;
Box2D.PbFixture
getFixtures(int index)
repeated .box2d.PbFixture fixtures = 100;
int
getFixturesCount()
repeated .box2d.PbFixture fixtures = 100;
java.util.List<Box2D.PbFixture>
getFixturesList()
repeated .box2d.PbFixture fixtures = 100;
Box2D.PbFixtureOrBuilder
getFixturesOrBuilder(int index)
repeated .box2d.PbFixture fixtures = 100;
java.util.List<? extends Box2D.PbFixtureOrBuilder>
getFixturesOrBuilderList()
repeated .box2d.PbFixture fixtures = 100;
float
getGravityScale()
optional float gravity_scale = 52;
float
getLinearDamping()
configurationBox2D.PbVec2
getLinearVelocity()
optional .box2d.PbVec2 linear_velocity = 12;
Box2D.PbVec2OrBuilder
getLinearVelocityOrBuilder()
optional .box2d.PbVec2 linear_velocity = 12;
Box2D.PbVec2
getPosition()
physical attributesBox2D.PbVec2OrBuilder
getPositionOrBuilder()
physical attributeslong
getTag()
optional int64 tag = 1;
Box2D.PbBodyType
getType()
required .box2d.PbBodyType type = 2;
boolean
hasActive()
optional bool active = 56;
boolean
hasAllowSleep()
optional bool allow_sleep = 54;
boolean
hasAngle()
optional float angle = 11;
boolean
hasAngularDamping()
optional float angular_damping = 51;
boolean
hasAngularVelocity()
optional float angular_velocity = 13;
boolean
hasAwake()
optional bool awake = 55;
boolean
hasBullet()
optional bool bullet = 53;
boolean
hasFixedRotation()
optional bool fixed_rotation = 57;
boolean
hasGravityScale()
optional float gravity_scale = 52;
boolean
hasLinearDamping()
configurationboolean
hasLinearVelocity()
optional .box2d.PbVec2 linear_velocity = 12;
boolean
hasPosition()
physical attributesboolean
hasTag()
optional int64 tag = 1;
boolean
hasType()
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;
-
-