R
Richard Horne
Guest
I'm creating dynamically sized objects of varying length. Each object has a head, as many repeated body sections as are required and a tail.
For instance, where ( is the head ---- are the body segments and the ) is the tail.
(------------------)
(-----------)
(--)
(------------------------------------)
I want to be able to detect collisions against the whole of the combined 'object' as though it were in fact a single object.
What sort of approach is best for this?
Is it possible to combine multiple instances of objects into one combined instance?
For instance, where ( is the head ---- are the body segments and the ) is the tail.
(------------------)
(-----------)
(--)
(------------------------------------)
I want to be able to detect collisions against the whole of the combined 'object' as though it were in fact a single object.
What sort of approach is best for this?
Is it possible to combine multiple instances of objects into one combined instance?