Me, you and Director MX 2004 2004-02-12 - By Thomas Higgins
Back > No mention of the new ray casting syntax in the help. Can you clue us > in about how to pass in the interesting model list and clipping value > to modelsUnderRay ?
I'm not sure but I seem to recall that this was implemented a bit late for the IMD team and that this should be covered in a tech note or elsewhere. Sorry my memory is fuzzy on those particulars, I'll look into this and make sure what I'm about to write is noted somewhere other than buried in a Dir3d-l archive. First, your old syntax will behave as it always has, so no worries there. But if you want to go with the newer snazzy way of doing things:
-- build a list of models among which to cast tModels = [ modelA, modelB, ... ]
-- build an argument list to pass to the modelsUnderRay call tArgList = [#maxNumberOfModels: 10, \ #levelOfDetail: #simple, \ #modelList: tModels, \ #maxDistance: 50]
-- cast the ray tResult = 3dMember.modelsUnderRay(location,direction,tArgList)
All entries in the argument list are optional and can be provided or not. If you specify a list of models then the list should be composed of _model_object_references_, do not use just the string names! If a model's bounding sphere is within the range maxDistance from your raycasting source point then the model will be checked against the raycast, if its bounding sphere is greater than maxDistance away it will not.
Enjoy.
Cheers, Tom Higgins Product Specialist - Director Team Macromedia
Announcing Director MX 2004, de lekkerste! http://www.macromedia.com/software/director
... __ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|