set method

void set(
  1. Vec3 rayFromWorld,
  2. Vec3 rayToWorld,
  3. Vec3 hitNormalWorld,
  4. Vec3 hitPointWorld,
  5. Shape shape,
  6. Body body,
  7. double distance,
)

Set result data.

Implementation

void set(
  Vec3 rayFromWorld,
  Vec3 rayToWorld,
  Vec3 hitNormalWorld,
  Vec3 hitPointWorld,
  Shape shape,
  Body body,
  double distance
){
  this.rayFromWorld.copy(rayFromWorld);
  this.rayToWorld.copy(rayToWorld);
  this.hitNormalWorld.copy(hitNormalWorld);
  this.hitPointWorld.copy(hitPointWorld);
  this.shape = shape;
  this.body = body;
  this.distance = distance;
}