Sets a function to be executed when the model is being dragged

function ondrag;

This function is called continuously (every time the 3D scene is rendered) while the model instance is being dragged (or rotated) by the user. Do not put lengthy computations is the script you attach to this event as it will have an adverse effect on the rendering speed, and therefore on the rendering quality of your scene.

See group::onclick on some examples how to assign functions while programming in JScript.

See also:

Class model |

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.