#1
|
|||
|
|||
Physics engine problem
Hi,
I have a long bar with nodes from [node00] to [node10] side by side, and its center is as same as [node05]. Now I want to let parts of nodes visible and fall down, so I set collideBox to only these nodes, and set other nodes with collideNone. When center node [node05] is included in collision nodes, it works normally. However, when center node is node included, it starts rotating after landing. Code:
bar.setPosition([0, 4, 0] ) for i in range(11): nodeName = "bar" if k < 10: nodeName += str(0) nodeName += str(k) if (k > 6) and (k < 9): bar.visible(viz.ON, node = nodeName ) bar.collideBox(node = nodeName) else: bar.visible(viz.OFF, node = nodeName) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Physics engine update rate and display rate | zharuViz | Vizard | 12 | 10-28-2013 07:52 AM |
joint and motor( physics engine) | m.jamal1987 | Vizard | 2 | 03-10-2011 02:42 AM |
Physics Problem | Sandro Holzer | Vizard | 4 | 03-29-2009 11:51 PM |
physics engine exception | ad_astra | Vizard | 3 | 03-25-2009 12:31 PM |
Physics engine question | adimov | Vizard | 2 | 07-22-2004 01:33 PM |