- Home /
Brick wall with cement
Hi! I know there are already like a thousand questions like this one, but nobody ever asked how to put cement in between the bricks.
I already tried it with cement "models" that i put in bewtween my bricks and applied this:
function OnCollisionEnter(c : Collision) {
var joint = gameObject.AddComponent(FixedJoint);
joint.connectedBody = c.rigidbody;
}
But what I don't like about that solution is that it is "sticky" for ever and never breaks, so the physics are completly gone. An other problem is that bricks didn't stick sideways.
So that is my question:
How can I build a brick wall with cement where the cement also breaks when the weight its holding gets too heavy and that also sticks side ways.
Thanks for ur help!!
Marc
well as default break point is infinity so you aren't able to break it
but if you give your joint less to break it you'll gain breakable cement
https://docs.unity3d.com/Documentation/ScriptReference/FixedJoint.html
https://docs.unity3d.com/Documentation/ScriptReference/Joint-breakForce.html
try to play with it a bit, ...
Your answer
Follow this Question
Related Questions
Click and Drag with wall snap 0 Answers
Rigidbody (Player) goes through wall 2 Answers
Going through walls help! 1 Answer
Prevent camera from going through walls and meshes 1 Answer
ANSWER DETERMINED (CAN'T DELETE) 1 Answer