Perfectly positioning an object

Avatar
theexperience
8 Posts
Posted Sep 22, 2011
I've got a cube being pushed into a position, and I'd like it to be lined up so you can shoot a portal beneath it ... thing is, the arm can't quite push it far enough. I'd like to just nudge it into position manually - I don't think it'd be noticeable to the player. I've tried using a trigger_push that's pointed at the spot on the ground (or in the air above the ground) where the info_placement_helper is, but all it seems to do is shuffle sideways (I guess its colliding with the ground ...).

Before I go and redesign this thing from scratch, is there a better way I could push the cube into the right position?

Advertisement
Registered users don’t see ads! Register now!
Avatar
dinnesch
105 Posts
Posted Sep 22, 2011
Replied 40 minutes later
You could use a toolsinvisible brush tied to a func_wall_toggle entity which will basically serve as an invisible wall to guide the cube to where you want it. Don't know the situation with your map(if the player could get in the way while the cube is flying), but you could simply toggle the brush when the cube arrives, and then toggle again to disable it when the player arrives. Just an example of how you could set up a cube dropper button(where cubedrop1 is the dropper and cubewall the invisible brush):
img
Avatar
Vordwann
767 Posts
Posted Sep 22, 2011
Replied 1 hour later
I would recommend a func_clip_vphysics parented to a func_door entity.
Avatar
Marise
249 Posts
Posted Sep 23, 2011
Replied 18 hours later
If you try those suggestions and they don't work, here is my idea... Set up a point_template that spawns a cube in the exact spot you want. Have it triggered by the first cube touching a trigger that is right next to the spot. That trigger will also kill the first cube. If you do this right, it would hopefully be pretty seamless, so it would simply appear that the cube was pushed into place. This would guarantee that you get it in just the right spot.

Of course, you wouldn't want the first cube to push the spawned cube out of place, so you might need to put in a tiny delay.

Avatar
ChickenMobile
2,460 Posts
Posted Sep 23, 2011
Replied 8 minutes later

Marise wrote:
If you try those suggestions and they don't work, here is my idea... Set up a point_template that spawns a cube in the exact spot you want.

I think if you are going to do it this way, use a trigger_teleport or a point_teleport with its' destination to an info_target. You won't need to spawn or delete the cube, it will just move when it is inside the trigger / when it is triggered.
Make sure to tick the 'Physics Object' flag and de-tick the 'Clients' flag / use a filter so then only the cube is teleported.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Marise
249 Posts
Posted Sep 23, 2011
Replied 4 hours later
I didn't know about trigger_teleport. That does sound simpler than what I suggested.