Class VehicleCollisionTesterRay

All Implemented Interfaces:
ConstJoltPhysicsObject, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>

public class VehicleCollisionTesterRay extends VehicleCollisionTester
A VehicleCollisionTester that uses ray casts.
  • Constructor Details

    • VehicleCollisionTesterRay

      public VehicleCollisionTesterRay(int objectLayer)
      Instantiate a tester for the specified layer.
      Parameters:
      objectLayer - the index of the desired object layer for collisions (≥0)
    • VehicleCollisionTesterRay

      public VehicleCollisionTesterRay(int objectLayer, Vec3Arg up)
      Instantiate a tester with the specified properties.
      Parameters:
      objectLayer - the index of the desired object layer for collisions (≥0)
      up - the "up" direction (in system coordinates, not null, unaffected, default=(0,1,0))
    • VehicleCollisionTesterRay

      public VehicleCollisionTesterRay(int objectLayer, Vec3Arg up, float maxSlopeAngle)
      Instantiate a tester with the specified properties.
      Parameters:
      objectLayer - the index of the desired object layer for collisions
      up - the "up" direction (in system coordinates, not null, unaffected, default=(0,1,0))
      maxSlopeAngle - the maximum angle to consider for colliding wheels (in radians, default=4*Pi/9)
  • Method Details