Please or Register to create posts and topics.

Parenting Cubes

Is there any possible way to parent a cube to another cube?

This... sentence... is... false.... dontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutit
MLIA
Thanks in advance :thumbup:

You'd want to use a phys_constraint. If that doesn't work, try using a nodraw func_physbox with two prop_dynamic_override cubes parented to it.

My stuff:
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]

You can also use SetParent, but for most purposes you wouldn't need this.

Falsi sumus crusto!

Can you not just give Cube A a name and then switch off SmartEdit and add the parentname <Cube A name> keyvalue to Cube B ?

RustyDios wrote:
Can you not just give Cube A a name and then switch off SmartEdit and add the parentname <Cube A name> keyvalue to Cube B ?

Exactly.

But much better is to parent a prop_dynamic (Cube Model) to a Cube.

I can think of a few situations in which parenting a cube would be helpful, mostly if you needed it to move with something else before detaching and becoming physically simulated again. But yeah, you'll almost always get the same effect by parenting a prop_dynamic.

Falsi sumus crusto!

Have you ever heard of a phys_magnet? Very cool stuff the Source engine has :)
https://developer.valvesoftware.com/wiki/Phys_magnet
You can set cubes to be magnetic to each other by setting them to the model of a cube.

EDIT: Probably not completely relevant but cool anyhow

?????????????????????????????TWP Releases | My Workshop

The only problem with phys_magnets is that they're hardcoded not to be grabbable, regardless of their weight. And you don't want to let them near portals if they won't fit through cleanly.

Falsi sumus crusto!