WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-16-2013, 02:50 PM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
Physics - Discs & Discs Holder

Hey Guys,

I am having some trouble to setting the right physic shapes for my models. I have three discs, with varying diameter holes, that rest on the disc holder. I need to dis-assemble the discs, move the disc holder and re-assemble the discs. The discs need to back in the right order, the top disc should not go further than its inner diameter permits.

I have enabled collide notify on all objects, and created collideBox shapes on the discs. But I cannot get the right shape for the holder so that the discs fall until they cannot go any further.

I have uploaded the code and some pictures for reference. Also apologies for the state the code is in.....
Attached Thumbnails
Click image for larger version

Name:	Picture1.png
Views:	264
Size:	373.2 KB
ID:	605  
Attached Files
File Type: pdf DiscTestCase_Roisin.pdf (20.7 KB, 394 views)
Reply With Quote
  #2  
Old 09-17-2013, 12:53 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,453
If you are using collide boxes the result will be like stacking boxes. Perhaps you can set this up a different way without physics. Using proximity sensors you can determine when a disk is above the holder and animate its movement into place.
Reply With Quote
  #3  
Old 09-21-2013, 06:54 AM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
Thanks, Jeff, that really is looking like the best option at this point......
Do you know if there is a way to disable physics until objects are grabbed? that way I can still have them colliding into other objects...
Reply With Quote
  #4  
Old 09-23-2013, 03:36 AM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
Jeff any idea if I can create objects that fit around the disc holder and apply physics shapes to that, but still be able to grab the object? Any time a link them the objects either go nuts or I cannot use the GrabHand function.....
Reply With Quote
  #5  
Old 09-23-2013, 11:30 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,453
With physics enabled is all the grab code working the way you want? If so, then you could disable physics on the node once it's in place above the holder using node.disable(viz.PHYSICS). Then animate its movement down.
Reply With Quote
  #6  
Old 11-05-2013, 06:32 AM
rmcconnell11 rmcconnell11 is offline
Member
 
Join Date: Mar 2013
Posts: 28
Hey Jeff, managed to get the physics around the options OK but I am having a bit of trouble with the grabhand function itself (I think, it could be other things). Anyway, when grabbing the objects to move them to a different location they tend to spiral and jump around the hand alot. Would you know if this is because the grabhand is just pinching the objects rather than grabbing them or due is it just down to physics itself?
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
Physics: Ball Bounces Unexpectly Based Upon Size + Ring Collision Shape mhead10 Vizard 3 11-02-2012 01:44 PM
help with augmented reality and physics Darkmax Vizard 1 06-12-2010 03:26 PM
RE:Slide Joints and physics optimization nige777 Vizard 4 06-22-2009 04:21 PM
Physics and Haptics jalvarez Vizard 3 07-16-2008 03:03 PM
collision with physics enabled joeymax Vizard 2 04-17-2008 02:49 PM


All times are GMT -7. The time now is 07:16 AM.


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