WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-01-2010, 08:52 PM
cgibb cgibb is offline
Member
 
Join Date: Apr 2009
Posts: 14
Quote:
Originally Posted by Jeff View Post
You will need to enable the physics engine in order to have collisions between objects and the effects of gravity. The Vizard docs explain how to add physics.
Thanks, Jeff. That worked when an object hits the ground, but what about other objects in my base model? For example, if I have a room with a built in counter, is there a way for the 'dropped' object to collide with that?

Here's a bit of what I'm working with:
Code:
viz.phys.enable()
room.collidePlane()

if link and checkobject(object) == 'foobar':
	foobar.collideBox(1,2.5,1) #hits the ground
	link.remove()
The object (foobar) in this situation will drop right through the counter to the ground.

Thanks again.
Reply With Quote
 


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


All times are GMT -7. The time now is 10:17 PM.


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