#1
|
|||
|
|||
Object Collision
Hi all,
I had a question regarding object collision. Currently, our program is setup to do certain triggers when you reach a certain point within a maze. For example, when you reach object A, start back at the starting point then go to object B, and reach object B you go back to starting point etc. However, it is currently setup strictly based on coordinates, so when things get scaled, it gets messed up. For example, end_coordinates = 500,200, 300 when coordinates = 500,200,300 the loop starts over with next trial. I was wondering, if there is a way to call on the objects within the 3ds max file and grab their coordinates within viz/python. For example, when you reach object A (table.vizgetcoordinates or table.vizdetectcollision) or something like these made up commands but didnt know what the command would be to pull coordinates for an object within the 3ds max created environment. Thank you, Matt |
#2
|
|||
|
|||
Take a look at the vizproximity library if you're not already using it. This allows you to detect if the user gets within a certain range of an object. The proximity sensor can be attached to the object so you don't need to know it's coordinates. It's also possible to get the transform of model sub-parts. See the example code at the bottom of the hierarchical models page.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Detecting collision with on-the-fly object | Notch | Vizard | 2 | 09-09-2014 04:41 AM |
Find collision point of line and arbitrary object | asdf | Vizard | 2 | 01-28-2013 10:04 AM |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 04:26 AM |
linked object collision | pgagolf | Vizard | 1 | 04-19-2007 01:27 PM |
when collision mode is on, can i "turn it off" for an individual object? | Vdoug | Vizard | 1 | 09-22-2005 12:14 PM |