WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-13-2017, 01:38 PM
Mattrat3000 Mattrat3000 is offline
Registered User
 
Join Date: Dec 2017
Posts: 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
Reply With Quote
  #2  
Old 12-15-2017, 02:30 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,335
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 11:04 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 05: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


All times are GMT -7. The time now is 12:57 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2002-2014 WorldViz LLC