PDA

View Full Version : create group of objects


Veronika
03-30-2012, 09: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, 09: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, 11:13 AM
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, 08:32 AM
You'll need to add a separate collision shape for each object.

Veronika
04-02-2012, 11:45 PM
ouuu, yes?
you didn't give me a good information :(
but thanks :)