Game Development Reference
In-Depth Information
Figure 10-16 . The player's texture is drawn well within the collision shape (4x scale)
In SpriteBuilder, open PlayerSoftBody.ccb and select the root node. Change the _en-
largeDrawRadius property to 14 . Again, this value is determined by experimentation and
should be as large as it needs to be to stretch the texture so that it aligns well with the cir-
cumference bodies' circle shapes. If you run this in the game, the result will be more like
in Figure 10-17 . The player is now noticeably larger than before. You may want to disable
physics shape drawing to better experience the final soft-body player.
Search WWH ::




Custom Search