Riding cubes.

Avatar
spongylover123
944 Posts
Posted Jan 06, 2012
Hello, I want to use the trigger_vphysics_motion to make a cube float, but when I tried to ride it. I just kept falling off.
Is there a way to walk or ride on a cube?
Advertisement
Registered users don’t see ads! Register now!
Avatar
YM_Industries
67 Posts
Posted Jan 07, 2012
Replied 2 hours later
Would it be possible to use a prop_dynamic instead of a physically simulated cube? Also, not sure if it's possible, but you could try locking an axis of the cube so it doesn't spin.
Avatar
spongylover123
944 Posts
Posted Jan 07, 2012
Replied 12 minutes later

YM_Industries wrote:
Would it be possible to use a prop_dynamic instead of a physically simulated cube? Also, not sure if it's possible, but you could try locking an axis of the cube so it doesn't spin.

I need to use the cube to activate a button.
How do you lock the axis of the cube?
Also I encountered another problem, it may be a bug or something, but the cube doesn't rise until it is picked up and the let go.

Avatar
ChickenMobile
2,460 Posts
Posted Jan 07, 2012
Replied 5 hours later

spongylover123 wrote:
How do you lock the axis of the cube?

Try using a "Think" script that forces the cube to face the same angles but different yaw.

Avatar
spongylover123
944 Posts
Posted Jan 07, 2012
Replied 6 hours later

chickenmobile wrote:
Try using a "Think" script that forces the cube to face the same angles but different yaw.

How do you do that?

Avatar
beecake
484 Posts
Posted Jan 07, 2012
Replied 2 hours later

spongylover123 wrote:
Also I encountered another problem, it may be a bug or something, but the cube doesn't rise until it is picked up and the let go.

I guess thats how cubes are in when they are in water. They don't float. Maybe trigger_push could do it? a big one a little bit underneath the surface

Avatar
spongylover123
944 Posts
Posted Jan 07, 2012
Replied 5 hours later
Well, the trigger push works, but when I stand on the cube, the player doesn't float up. Is there a way to change the weight?
Avatar
Brainstone
401 Posts
Posted Jan 08, 2012
Replied 12 hours later
You know, that's a physically thing: If the cube is in a zero-gravity-field, it experiences no force. If you then push him slowly up, he experiences a small force for a short amount of time. The player, however, is always in the normal gravity field. Therefore, if he stands on the cube, his immersive weight will almost immediately push the cube to the floor. To be able to push the player upwards, the cube would have to be attacked by an immense force. But then it would go straight upwards without th player standing on it.

So you'll need to trick a little bit. Have you tried parenting a func_brush with the players clip texture to the cube? That might work.

Avatar
spongylover123
944 Posts
Posted Jan 08, 2012
Replied 8 hours later

BrainstoneX wrote:
You know, that's a physically thing: If the cube is in a zero-gravity-field, it experiences no force. If you then push him slowly up, he experiences a small force for a short amount of time. The player, however, is always in the normal gravity field. Therefore, if he stands on the cube, his immersive weight will almost immediately push the cube to the floor. To be able to push the player upwards, the cube would have to be attacked by an immense force. But then it would go straight upwards without th player standing on it.

So you'll need to trick a little bit. Have you tried parenting a func_brush with the players clip texture to the cube? That might work.

Thanks brainstone, the playerclip thing works!
Now I need to throw a cube to ride it.
Does anyone know how to add a cube throwing function? Like in portal when your holding a cube and then you click the left mouse button and it throws.
Don't say that you can throw cubes using Sixense, I know, I have one, but 15/16 of this community don't use the hydra, so is there a console command, a squirrel script to do this?

Avatar
Lpfreaky90
2,842 Posts
Posted Jan 08, 2012
Replied 22 minutes later

spongylover123 wrote:
Does anyone know how to add a cube throwing function? Like in portal when your holding a cube and then you click the left mouse button and it throws?

SERIOUSLY?!?!
Why did I not know that :O

Edit:
Post count: 404 - not found :wink:

Avatar
beecake
484 Posts
Posted Jan 09, 2012
Replied 10 hours later

spongylover123 wrote:
Does anyone know how to add a cube throwing function? Like in portal when your holding a cube and then you click the left mouse button and it throws.

Maybe have a trigger_push parented to the player, or cube, and a game_ui OnAttack1; Trigger_push; Enable?

Avatar
spongylover123
944 Posts
Posted Jan 09, 2012
Replied 14 hours later

beecake wrote:
spongylover123 wrote:

Does anyone know how to add a cube throwing function? Like in portal when your holding a cube and then you click the left mouse button and it throws.

Maybe have a trigger_push parented to the player, or cube, and a game_ui OnAttack1; Trigger_push; Enable?

It doesn't drop the cube, but maybe I can bind or alias it to E

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Jan 10, 2012
Replied 1 day later
Sorry for the double post, but I encountered another problem, when triggering gravity to enable the cube goes up and knocks me down to the floor.
Is there a way around this, I can't change the trigger_push's force below 90 because If I do, the cubes won't rise, instead, float.