![]() |
|
#1
|
|||
|
|||
|
Collision complex shapes
Hi,
I am making a realistic assembly process with complex objects and realistic physics. I am currently populating the objects with spheres for collision but it is proving problematic and very time consuming. Is there a simpler way to detect collision whilst having realistic physics being applied and allowing for grabber tool interaction? Here is an example of a simple disc: Code:
#Discs
#Disc1
Disc1=viz.addChild('Disc VR Models\Bottom Disc.wrl', euler=(0,90,0), color=viz.GREEN, alpha=1)
#Disc1.collideBox(friction=.001)
RADIUS = 0.075
TUBE_RADIUS = 0.02
for deg in range(0,360,10):
x = math.sin(viz.radians(deg)) * RADIUS
z = math.cos(viz.radians(deg)) * RADIUS
Disc1.collideSphere(radius=TUBE_RADIUS,pos=(x,z,0))
Disc1.enable(viz.COLLIDE_NOTIFY)
Disc1.crashSound = viz.add('sounds/crashQuiet.wav')
Disc1.setPosition(0,1,1)
Harry Anderson |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .bsp->.obj->.osgt map Collision Problem/Resources for free maps? | plogic | Vizard | 0 | 10-24-2014 08:59 AM |
| Physics: Ball Bounces Unexpectly Based Upon Size + Ring Collision Shape | mhead10 | Vizard | 3 | 11-02-2012 02:44 PM |
| Collision Exception | jassel41 | Vizard | 2 | 11-09-2010 06:08 PM |
| Collision and avatar animation | shahramy | Vizard | 2 | 10-27-2010 12:47 AM |
| Collision with child nodes | rubberpimple | Vizard | 4 | 09-17-2008 05:27 PM |