Jump to content

Intersection point coordinates?


photo

Recommended Posts

Hi,

 

I'm afraid the only analog in Unigine 1 is to use UnigineScript functions:

  1. ObjectTerrain::getIntersection(): http://old-docs.developer.unigine.com/scripting/library/objects/class.objectterrain#getIntersection_vec3_vec3_int_int_int_int
  2. engine.world.getIntersection(): http://old-docs.developer.unigine.com/scripting/library/engine/engine.world#engine.world.getIntersection_vec3_vec3_int_int
  3. engine.world.getIntersection(): http://old-docs.developer.unigine.com/scripting/library/engine/engine.world#engine.world.getIntersection_vec3_vec3_int_int_int

In the first case you will be able to get local terrain coordinates, so you will need to convert them into world.

 

Sorry for the inconvenience.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...