- Home /
how to put player inside a cube and still move?
i want to put my player inside a cube for a map but when i put they player in it just falls or it cant move (not a movement script issue) so how would i do that plus i dont have probuilder and i know if i had it it would be like a press of a button but i want to put my player in a working cube and move.
Answer by ahsen35813 · Mar 28, 2021 at 09:54 PM
3D modeling is a crucial skill to have in 3D game development. I would strongly recommend learning something like Blender or Fusion 360 (free for hobbyist or education edition). If I understand your problem correctly, this will solve your problem.
However, there may be a bigger problem. If you want to put the player inside a cube and also have the cube moveable, that is pretty difficult to do since you can't have any concave active rigidbodies. You can't have a moving cube with a hollow space inside, because Unity simply doesn't allow it.
However, you could construct the hollow cube you want out of various cubes (one per face) and then put them all under one parent. Apply a rigidbody to the parent, and you'll have a hollow cube, that is physics enabled! This is a pretty hacky way to get around Unity's in-built limitations, but it might work for your needs.
Your answer
![](https://koobas.hobune.stream/wayback/20220613031440im_/https://answers.unity.com/themes/thub/images/avi.jpg)