Jump to content

Prefab : physic child wrong position


Recommended Posts

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.

 

physic_childprefab.jpg

 

 

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

Stop toying and make games

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...