Class ConveyorBelt

java.lang.Object
org.jbox2d.testbed.framework.TestbedTest
org.jbox2d.testbed.tests.ConveyorBelt
All Implemented Interfaces:
ContactListener, JbDeserializer.ObjectListener, JbSerializer.ObjectSigner, UnsupportedListener

public class ConveyorBelt extends TestbedTest
  • Field Details

    • platformTag

      private static long platformTag
    • m_platform

      private Fixture m_platform
  • Constructor Details

    • ConveyorBelt

      public ConveyorBelt()
  • Method Details

    • getTag

      public java.lang.Long getTag(Fixture argFixture)
      Specified by:
      getTag in interface JbSerializer.ObjectSigner
      Overrides:
      getTag in class TestbedTest
      Parameters:
      argFixture -
      Returns:
      the tag for the fixture. can be null.
    • processFixture

      public void processFixture(Fixture argFixture, java.lang.Long argTag)
      Specified by:
      processFixture in interface JbDeserializer.ObjectListener
      Overrides:
      processFixture in class TestbedTest
    • isSaveLoadEnabled

      public boolean isSaveLoadEnabled()
      Description copied from class: TestbedTest
      Override to enable saving and loading. Remember to also override the JbDeserializer.ObjectListener and JbSerializer.ObjectSigner methods if you need to
      Overrides:
      isSaveLoadEnabled in class TestbedTest
      Returns:
    • initTest

      public void initTest(boolean deserialized)
      Description copied from class: TestbedTest
      Initializes the current test
      Specified by:
      initTest in class TestbedTest
    • preSolve

      public void preSolve(Contact contact, Manifold oldManifold)
      Description copied from interface: ContactListener
      This is called after a contact is updated. This allows you to inspect a contact before it goes to the solver. If you are careful, you can modify the contact manifold (e.g. disable contact). A copy of the old manifold is provided so that you can detect changes. Note: this is called only for awake bodies. Note: this is called even when the number of contact points is zero. Note: this is not called for sensors. Note: if you set the number of contact points to zero, you will not get an EndContact callback. However, you may get a BeginContact callback the next step. Note: the oldManifold parameter is pooled, so it will be the same object for every callback for each thread.
      Specified by:
      preSolve in interface ContactListener
      Overrides:
      preSolve in class TestbedTest
      Parameters:
      contact -
      oldManifold -
    • getTestName

      public java.lang.String getTestName()
      Description copied from class: TestbedTest
      The name of the test
      Specified by:
      getTestName in class TestbedTest
      Returns: