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
Modifier and TypeMethodDescriptionboolean
optional bool active = 56;
boolean
optional bool allow_sleep = 54;
float
getAngle()
optional float angle = 11;
float
optional float angular_damping = 51;
float
optional float angular_velocity = 13;
boolean
getAwake()
optional bool awake = 55;
boolean
optional bool bullet = 53;
boolean
optional bool fixed_rotation = 57;
getFixtures
(int index) repeated .box2d.PbFixture fixtures = 100;
int
repeated .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;
float
optional float gravity_scale = 52;
float
configurationoptional .box2d.PbVec2 linear_velocity = 12;
optional .box2d.PbVec2 linear_velocity = 12;
physical attributesphysical attributeslong
getTag()
optional int64 tag = 1;
getType()
required .box2d.PbBodyType type = 2;
boolean
optional bool active = 56;
boolean
optional bool allow_sleep = 54;
boolean
hasAngle()
optional float angle = 11;
boolean
optional float angular_damping = 51;
boolean
optional float angular_velocity = 13;
boolean
hasAwake()
optional bool awake = 55;
boolean
optional bool bullet = 53;
boolean
optional bool fixed_rotation = 57;
boolean
optional float gravity_scale = 52;
boolean
configurationboolean
optional .box2d.PbVec2 linear_velocity = 12;
boolean
physical attributesboolean
hasTag()
optional int64 tag = 1;
boolean
hasType()
required .box2d.PbBodyType type = 2;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods 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
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
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;
-