WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-14-2014, 09:34 AM
kausram kausram is offline
Member
 
Join Date: Mar 2014
Posts: 1
selective permeability

Hello, I'm a new user and have a question:
I can make all objects in my world permeable with viz.MainView.collision(viz.OFF), but how can I selectively make one object permeable while others remain impermeable?
Thanks in advance!
Reply With Quote
  #2  
Old 03-14-2014, 10:37 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
With physics activated, all objects have a collision shape, and will collide with the mainview. You can delete the collision shape of an object with the object.collideNone() function.
Reply With Quote
  #3  
Old 03-16-2014, 10:27 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can turn off viewpoint collision for a single object using the <node3d>.disable command with the viz.INTERSECTION flag:
Code:
import viz
viz.go()

viz.collision(viz.ON)

dojo = viz.add('dojo.osgb')

ball = viz.add('beachball.osgb',pos=[0,1.8,3])
ball.disable(viz.INTERSECTION)
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


All times are GMT -7. The time now is 11:01 PM.


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