![]() |
|
|
|
#1
|
|||
|
|||
|
In response to collision detection on child nodes this should not be a problem. As long as you have your callback function for collision events and you have enabled collision notification on the node that will generate the event <VizNode>.enable( viz.COLLIDE_NOTIFY ) it should work.
As for the code, we have not forgotten your request. I don't think I can help with that but when Farshizzo has some time he will be able to help you out. |
|
#2
|
|||
|
|||
|
I don't have a fully working example to show you, but the concept is very simple. First create an empty group node and define a collision shape that matches the bone you are interested in:
Code:
boneCollide = viz.addGroup() boneCollide.collideBox([0.1,0.1,0.2]) Code:
boneCollide.setPosition(bone.getPosition(viz.AVATAR_WORLD))
boneCollide.setQuat(bone.getQuat(viz.AVATAR_WORLD))
#Perform collision detection
nodes = viz.phys.intersectNode(boneCollide)
for n in nodes:
print 'bone collided with',n
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| real time collision on animation path | whj | Vizard | 10 | 10-06-2008 05:38 PM |
| Collision detection with haptic pen | mjabon | Vizard | 3 | 01-17-2008 07:35 PM |
| Pivot points for child objects in Vizard with 3ds Max | Gladsomebeast | Vizard | 0 | 09-19-2006 12:21 PM |
| Child Object Rotation | paulgoldberg | Vizard | 5 | 09-05-2006 12:33 PM |
| collision events trigger | Eunice | Vizard | 1 | 01-03-2006 11:39 AM |