- Home /
Question by
CypherGames · Jan 08, 2014 at 03:15 AM ·
lagtransform.parentcat
Lag on set transform.parent
I am testing some throwing knifes and when I throw them, I set their parent to the game object they collide with first. I have a flying nyan cat in my scene, and when the knife gets "stuck" to it, the game drops like 40 fps. Please help!!
Comment
Posting code helps us troubleshoot. Please post the code that parents the knife. We may need additional information if that all looks good.
We definately need more information. As it stands this question is unanswerable
are the objects rigidbodys? Physical objects that are stuck into each other can cause fps drops.
If you're using rigidbody for the knife, make sure you disable it once it gets "stuck".