Thread
:
making doors open with clicking on them using a mouse
View Single Post
#
2
04-09-2009, 01:27 PM
Jeff
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
Try using viz.pick or vizact.onpick. Here when the door object is clicked with the left mouse button the function door.addAction is called with the argument opendoor, your animating action.
Code:
vizact.onpick(door, door.addAction, opendoor)
Jeff
View Public Profile
Find all posts by Jeff