PDA

View Full Version : Separate collision box...



speeder
05-22-2010, 07:09 PM
I've made three objects that use the same graphics, but has different colours.

All three are entities.

But when I change the collision material of one of them, all three get changed... How I fix that?

TSO
05-23-2010, 12:17 AM
I'm not expert but It sounds like you copied the same entity and and just tweek each ones individual color. Then tried to tweek the individual collision box.

But if I understand it right if you copy one entity the copies share the collision data or rather the same .col file. So maybe re-create the entities separately loading each of their own files. Careful not to have them share the same collision data file.

In the the .lua file. the entities should share a certain piece of code in the first few lines of code.
"this:LoadCollisionInfo("~/what_ever_object_this_is.col");"

If your objects all load from the same file. They get the same collision box.
Hope this helps find a solution or understand your problem at hand. =)

speeder
05-23-2010, 04:31 PM
Erm...

holy **** :P

I am around hacking the source, and yet you easily knew all technical details about my problem...

But now I have an idea (just erm... load another .col file manually!)

TSO
06-02-2010, 04:18 PM
Holy **** indeed I've learned something! xD

speeder
06-12-2010, 07:21 PM
Although I failed to find where Novashell loads itself the collision, I loaded .col files manually, and it worked :)