PDA

View Full Version : create group of objects


Veronika
03-30-2012, 10:00 AM
hello,

how I can create one group of objects?
Because I want to set collision, but for each object separately - it will be very time-consuming.

thanks :)

Veronika

Jeff
03-30-2012, 10:12 AM
Each object will need it's own collision shape. Are all these objects you want to group together the same type of object? Can you describe your application?

Veronika
03-31-2012, 12:13 PM
viz.phys.enable()

ground.collidePlane()

<node3d>.collideBox()
<node3d>.disable(viz.DYNAMICS)

avatar.collideBox()
avatar.disable(viz.STATICS)
avatar.enable(viz.COLLIDE_NOTIFY)

I have approximately 30 objects - each object is '*.wrl'. And I need to set collision between avatar and objects and therefore I need to create group of objects.

Jeff
04-02-2012, 09:32 AM
You'll need to add a separate collision shape for each object.

Veronika
04-03-2012, 12:45 AM
ouuu, yes?
you didn't give me a good information :(
but thanks :)