HexDump
26-12-2007 14:48:21
Hi all,
I have a little problem. In my game entites can be resized, so I need to resize collision objects too (the one added to the bodies). I can´t see any method in the collision object to acomplish this, am I suposed to delete/new anytime I resize a gameobject and by extesion its collision object? I think this will produce low performance.
By the way I have found another problem in the mean time. I have a box collision that have created with an offset. If I place my gameobject at 0,0,0 mesh + collision are at same place, but when I put the game object at for example 0,0,10, only the collision goes there not the mesh (Set position is just a Node->SetPosition(), and I have done a pBody->AttachToNode()). Do anybody know what coud be happening?
Thanks in advance,
HexDump.
I have a little problem. In my game entites can be resized, so I need to resize collision objects too (the one added to the bodies). I can´t see any method in the collision object to acomplish this, am I suposed to delete/new anytime I resize a gameobject and by extesion its collision object? I think this will produce low performance.
By the way I have found another problem in the mean time. I have a box collision that have created with an offset. If I place my gameobject at 0,0,0 mesh + collision are at same place, but when I put the game object at for example 0,0,10, only the collision goes there not the mesh (Set position is just a Node->SetPosition(), and I have done a pBody->AttachToNode()). Do anybody know what coud be happening?
Thanks in advance,
HexDump.