YouGroove Posted March 1, 2015 Share Posted March 1, 2015 Hi Loading and placing a prefab by code , containing physic child objects, the physic child objects are always place at the same position that is not the same as the prefab position. While dropping the prefab in the editor and running the game all is ok, so something is wrong with instancing a prefab by code and it's physic child objects. Another bug : BSP childs looses collision when used in a prefab we instantiate by code , while it's ok when we place a prefab in the editor and run the game. How to test : Put directory "BREAKABLE" at the root of your project directory put the map file in your map directory Run the game : Press V to spawn a BSP physic prefab , Press B to spawn a model based prefab It's simple and better workflow to have prefabs containing physic object behaving in the right way and it will allow many advanced physic destruction possibilities. LE3 BREAK.zip Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.