Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

var point: Vector2;
Vector2 point;
point as Vector2

Description

The point in world space where the ray hit the collider's surface.

The exact point of contact can be useful for positioning graphic effects (such as explosion or blood splatters) and for determining which specific part of an object was hit.

See Also: fraction.