TerrainMousePick()

语法

Result = TerrainMousePick(#Terrain, CameraID, x, y)
概要
Simulates a mouse click on the terrain under the specified 2D point (x,y - in pixels) on the specified camera.

参数

#Terrain The terrain to use.
CameraID The camera to use. To get a valid camera id, use CameraID().
x, y The position (in pixels) in the camera view of the point.

返回值

If the terrain has been hit by the simulated mouse click, it will return #True, else it will return #False. To get information about the pick position, use PickX(), PickY() and PickZ().

参阅

CreateTerrain(), CreateCamera()

已支持操作系统

所有

<- TerrainLocate() - Terrain Index - TerrainPhysicBody() ->