ShapecastHit¶
Type
ShapecastHit describes one contact along a sweep from Physics.Spherecast, Physics.Boxcast, or Physics.Capsulecast.
Entity¶
Entity is the hit Entity, or nil if destroyed.
Position¶
Position is the world-space contact point on the hit shape in units.
Normal¶
Normal is the outward unit normal at Position, or Vector3.new(0, 0, 0) when shapes start deeply overlapping.
Distance¶
Distance is the distance in units along the sweep from from to contact (Fraction times the sweep length).
Material¶
Material is the name of the hit entity's material, or "" when the entity has no material or was destroyed.
LocalPosition¶
LocalPosition is the contact point in the hit entity's own frame, or Position when Entity is nil. See RaycastHit.LocalPosition.
LocalNormal¶
LocalNormal is the outward unit normal in the hit entity's own frame, or Normal when Entity is nil. See RaycastHit.LocalNormal.
Fraction¶
Fraction is the sweep progress from from (0) to to (1) at contact.