Skip to content

PluginHit

Type

PluginHit describes where a PluginEvent cursor ray hits an unlocked part within 1000 units. Local coordinates are in units from the part's center along its unscaled axes.

Part

Field
Part: Entity

Part is the hit part.

Face

Field
Face: "Right" | "Left" | "Top" | "Bottom" | "Back" | "Front"

Face is the hit side: "Right", "Left", "Top", "Bottom", "Back", or "Front".

Position

Field
Position: vector

Position is the hit point in world space.

Normal

Field
Normal: vector

Normal is the outward face normal in world space.

LocalPosition

Field
LocalPosition: vector

LocalPosition is the hit point in Part's frame.

LocalNormal

Field
LocalNormal: vector

LocalNormal is the outward face normal in Part's frame.