Class CollisionPdu

All Implemented Interfaces:
Marshaller, Serializable

public class CollisionPdu extends EntityInformationInteractionFamilyPdu implements Serializable
7.2.3 Collisions between entities shall be communicated by issuing a Collision PDU. See 5.3.3.
See Also:
  • Field Details

    • NAME

      public static final String NAME
      The name of this PDU type
      See Also:
    • issuingEntityID

      protected EntityID issuingEntityID
      This field shall identify the entity that is issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28).
    • collidingEntityID

      protected EntityID collidingEntityID
      This field shall identify the entity that has collided with the issuing entity (see 5.3.3.4). This field shall be represented by an Entity Identifier record (see 6.2.28).
    • eventID

      protected EventIdentifier eventID
      This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34).
    • collisionType

      protected CollisionType collisionType
      This field shall identify the type of collision. The Collision Type field shall be represented by an 8-bit record of enumerations uid 189
    • pad

      protected byte pad
      some padding
    • velocity

      protected Vector3Float velocity
      This field shall contain the velocity (at the time the collision is detected) of the issuing entity. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)].
    • mass

      protected float mass
      This field shall contain the mass of the issuing entity, and shall be represented by a 32-bit floating point number representing kilograms.
    • location

      protected Vector3Float location
      This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. The Location field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)].
    • byteArrayOutputStream

      protected ByteArrayOutputStream byteArrayOutputStream
      byteArrayOutputStream (baos) is used for marshal/unmarshal serialization
      See Also:
    • dataOutputStream

      protected DataOutputStream dataOutputStream
      dataOutputStream (dos) is used for marshal/unmarshal serialization
      See Also:
  • Constructor Details

    • CollisionPdu

      public CollisionPdu()
      Constructor creates and configures a new instance object
  • Method Details