Datablock manipulation
by Jyan Smithy · in Technical Issues · 07/29/2006 (6:38 pm) · 4 replies
Hey. I've been trying to figure out for a few weeks now how to manipulate my PlayerBody datablock. I want to make it so that each player's speed is different than each others. In reading some things it sounded like the datablocks were just templates and anything made from them just made copies and I could manipulate those copies individualy. But reading other things it just seems like all the objects created with the datablock share it and any changes the datablock recieves.
Is there a way to manipulate runForce from the PlayerBody datablock for individual players? Or do I have to rebuild them differently outside a datablock? If I have to change it then how would I start doing that?
Any help would be greatly appreciated, thanks in advance =)
Is there a way to manipulate runForce from the PlayerBody datablock for individual players? Or do I have to rebuild them differently outside a datablock? If I have to change it then how would I start doing that?
Any help would be greatly appreciated, thanks in advance =)
Torque Owner Cliff
new PlayerBody(individualDatablock: abstractDatablock) { ... };I think that's the correct order to specify inheritence, but it might be backwards.