modelsUnderLoc
The modelsUnderLoc function is similar to modelUnderLoc , but instead of returning the name of one model, the function returns a list of the models underneath the pointer or some other specified point. The list is in the order of the models' depth in the 3D world, with the model closest to the camera appearing first on the list.
The syntax for modelsUnderLoc is as follows:
member(whichCastmember).camera(whichCamera).
modelsUnderLoc(pointWithinSprite {, maxNumberOfModels})
sprite(whichSprite).camera.
modelsUnderLoc(pointWithinSprite {, maxNumberOfModels})
modelsUnderRay
The modelsUnderRay function returns a list of the models that a specified ray intersects. The ray can have any orientation inside the 3D world, because modelsUnderRay includes two parameters for the ray: its start point and its direction.
The syntax for modelsUnderRay is as follows: |