PhysicsEvent3D constructor

PhysicsEvent3D(
  1. PhysicsEventType3D type,
  2. int bodyA,
  3. int bodyB, {
  4. Vector3? point,
  5. Vector3? normal,
  6. double depth = 0,
})

An event of type between bodyA and bodyB.

Implementation

PhysicsEvent3D(
  this.type,
  this.bodyA,
  this.bodyB, {
  Vector3? point,
  Vector3? normal,
  this.depth = 0,
}) : point = point ?? Vector3.zero(),
     normal = normal ?? Vector3.zero();