Footprint Decals Don't Scale with Player
by Ryan Mounts · in Torque 3D Professional · 09/21/2009 (12:01 am) · 5 replies
When I scale the player, the footprint decals do not scale accordingly. For example, scaling the player down results in comparatively large footprints, and visa versa.
#2
09/21/2009 (12:42 pm)
Haha, yeah I woke up this morning and it instantly hit me that the footprint decals use datablocks and that the scale was in there. Thanks for not ridiculing my silly bug report!! ;)
#3
THREED-751
09/21/2009 (2:41 pm)
Still you can do %player.setScale( 2.0 ) and the player will be 2x larger, but its decals will not scale with it.THREED-751
#4
Haven't tested it, but that should work.
09/21/2009 (7:42 pm)
The call to the DecalManager which adds a decal when a player's footstep trigger fires is not passing anything for the optional decalScale (default 1.0) parameter. If you're scaling your player non-uniformly you'll want to work something specific out but otherwise you could changegDecalManager->addDecal( rInfo.point, normal, tangent, mDataBlock->decalData );to take one component of the player's scale (getScale().x for example) after the datablock.
Haven't tested it, but that should work.
#5
08/02/2010 (5:40 pm)
Fixed in 1.1 Beta 2
Torque Owner deepscratch
DeepScratchStudios