Please or Register to create posts and topics.

Swapping between two physics systems

Page 1 of 2Next

I am trying to make an object that I can swap between acting like a ordinary cube and acting like a func_tracktrain, but I can't seen to get it working. I was wondering if people have any advice?

Use prop_physics and parent to train.

yup what he said - just make sure to have your physics object motion disabled when parenting to stop it glitching

There just seems to be one problem with that though, since if I move the prop_physics when it isn't parented to the train, the train doesn't move with it, and the entire system gets an offset. I'm not sure how to fix this.
Thank You,
Sound Logic

I have no idea how well this would work, but you could try parenting them to each other, then disabling the cube's motion when the train moves.

Hear the turret, for it is knell. It summons thee to heaven, or to hell.

Can we get some screenshots of what you're trying to do?

My Maps:
[spoiler][SP] Alternate[/spoiler]

p0rtalplayer: Parenting the train doesn't seem to work, which makes sense since it is supposed to be a physics system of its own. The problem is that since they are both physics objects of their own they object to having the other try to override it.

You could try having a prop_dynamic parented to the train, have it start Disabled and when the cube goes into a trigger area, kill the real cube and activate the prop. Good luck getting that to be smooth and not incredibly obvious to the player, though.

Could you elaborate on what exactly you're trying to do more? I can't think of anything where this would be a good idea.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Well, I am trying to create a cube that will move to a location by itself under some circumstances, but acts like an ordinary cube under other circumstances. The exact plan is to have a cube that will move by itself when it isn't being looked at, and kill the player on touch, but when it is being looked at is a regular cube.

You can move the train back to the cube by parenting a track to it and teleporting the train to it.

Page 1 of 2Next