ray static method

void ray(
  1. Vector3 origin,
  2. Vector3 direction, {
  3. double length = 1.0,
  4. Vector4? color,
})

Draws a ray starting at origin along direction with length length.

Implementation

static void ray(
  vm.Vector3 origin,
  vm.Vector3 direction, {
  double length = 1.0,
  vm.Vector4? color,
}) {
  line(origin, origin + direction.normalized() * length, color: color);
}