Class VehicleCollisionTesterCastSphere

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

public class VehicleCollisionTesterCastSphere extends VehicleCollisionTester
A VehicleCollisionTester that casts a spherical shape.
  • Constructor Details

    • VehicleCollisionTesterCastSphere

      public VehicleCollisionTesterCastSphere(int objectLayer, float radius)
      Instantiate a tester with the specified properties.
      Parameters:
      objectLayer - the index of the desired object layer for collisions (≥0)
      radius - the desired radius
    • VehicleCollisionTesterCastSphere

      public VehicleCollisionTesterCastSphere(int objectLayer, float radius, Vec3Arg up)
      Instantiate a tester with the specified properties.
      Parameters:
      objectLayer - the index of the desired object layer for collisions (≥0)
      radius - the desired radius
      up - the "up" direction (default=(0,1,0))
    • VehicleCollisionTesterCastSphere

      public VehicleCollisionTesterCastSphere(int objectLayer, float radius, Vec3Arg up, float maxSlopeAngle)
      Instantiate a tester with the specified properties.
      Parameters:
      objectLayer - the index of the desired object layer for collisions (≥0)
      radius - the desired radius
      up - the "up" direction (default=(0,1,0))
      maxSlopeAngle - the maximum slope angle considered for colliding wheels (in radians, default=4*pi/9)
  • Method Details