Physics simulation question
Here's the thing. I ran the map, and set a portal on a nearby wall and up at the top of the column...and Portal 2 crashes. I try again (both times using Run Map), and this time is survives a little while...I push the box off the column, and it swings as I'd expect... somewhat
since the phys_lengthconstraint isn't tied to any FACE of the cube, it spun around pretty wildly, but I can understand that element at leastI even managed to make it swing through a portal a few times, and it came out the other side. As I was getting ready to experiment further, game crashes again.
Now, I'm no magic whiz with Hammer to begin with, and it's possible I linked something in a weird way so as to just make the calculations hate me. As far as I know, the only way to give something a name in Hammer is to tie it to an entity, and I'm not sure what entity would be most useful here, so maybe that'd fix it. But the broader question would be, would pursuing physics and portal combination puzzles be possible...i.e. is the physics simulation BUILDING complex and powerful enough to handle going through portals? Or does the sudden change in location wreak havoc on the calculations required, and eventually overload the game?
Thoughts?
To my knowledge, Havok is the same in Portal 2 as it is in pretty much any other Source game. I know that in Portal 1 they had to seriously hack the physics to get things to work (and they talk about it in the Portal 1 commentary), so I doubt that has changed a great deal in Portal 2.
I know the Source wiki explained that lengthconstraint would clip through objects and other "ropes," but I was trying to test how it'd respond to walls and portals.
Looks like it won't. Not with any stability. I'll still explore having physics elements as part of my puzzles, but I will make sure portals aren't possible near them.
Welsh Mullet wrote:
Are there prop wires like in half life 2 for the plugs? perhaps you'd be better off using one of them, though i dread to think what would happen if you closed a portal on one.
I haven't combed the world models yet. Being that I don't have a copy of half-life 2, I'm not sure what I'll find for their props. I think that the plugs were still held by lengthconstraint effects in HL2, and there was just a prop or model of some kind scripted to be visible. Not entirely sure how that works...Garry's Mod does the same thing with its rope tool.
And yes, closing a portal on one would almost certainly crash the game. That, or it'd just clip through the walls.
move_rope...what/where is that?
I tried using a rope in portal one, but since portals are just a render of the room form a certain point, the rope "jumped", so instead of going through the portal, it just went straight through a wall to the attatchment point.