fehaar / FFWD

This is the FFWD framework for XNA, that allows you to port Unity3D games to XNA for use on WP7 or XBox360 (XBLIG)
Microsoft Public License
133 stars 36 forks source link

Question about physic (SetActiveRecursively(true/false)) #54

Open pmyn opened 12 years ago

pmyn commented 12 years ago

Hello, i have a little question about SetActiveRecursively(false) and physic collision. I pooled my object for better performance and deactivate them (SetActiveRecursively(false)). When i need to spawn i set SetActiveRecursively(true), but then collision not work. When i dont use SetActiveRecursively(true/false), everything is fine. Can you help me with this, if i do something wrong, if not i start search reason of this issue. Really thanks for help.

fehaar commented 12 years ago

You should be able to do this, so I can't tell you what goes wrong. I have a physics demo scene pending, and when I make that I will try this out as well to see what is going wrong.

pmyn commented 12 years ago

okey :) i have next question but only for solution. What is the best way to show dynamic text on scene. For example i hit enemy and i want for 1 second show text above. Is the best way OnGUI.Label() or something other way.

fehaar commented 12 years ago

Yes. You can use the GUI calls in OnGUI.