You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > hitPoint

19.14.2 hitPoint

p = SegmentQueryInfo:hitPoint(startvect, stopvect)

Parameter

Type

Description

self

in physics.SegmentQueryInfo

The input SegmentQueryInfo

startvect

in physics.Vect

An end point of the segment

stopvect

in physics.Vect

Other end point of the segment

p

out physics.Vect

Hit point

Returns the hit point in world coordinates where the segment between startvect and stopvect
first intersects the Shape.

Introduced in platform.apiLevel = '2.0'