# Getting velocity in only one plane (X) in Kismet (UDK)

I'm trying to make a character in 2.5 platformer (in UDK) to "climb" a giant tree trunk by walking on a spiral staircase enveloped around the tree. When character goes right the tree rotates thru matinee sequence so it seems that the character is moving while in reality it is the tree that moves.

I connected the matinee sequence playrate to the velocity of the character and its all good as long the character just moves left or right. When it jumps though, the velocity still affects the playrate - it should not as character moves up/down, not right/left.

How do I set it up in Kismet so I get a float variable with velocity only in the X plane (horizontal)?

-
I'm not familiar with Kismet, but perhaps there's a way to read only the X coordinate of the velocity vector. Because that's exactly what you're looking for. – Marton Oct 4 '12 at 13:16
Getting the velocity vector gives me nothing as it doesn't tell what is the velocity at the X plane. – anna1987 Oct 4 '12 at 15:20
@anna1987: Can't you just use the X component of the velocity vector? – Nic Foster Oct 4 '12 at 18:49
@anna1987 A 2D or 3D velocity vector's X component is exactly the velocity in the X plane. If you can't access the Vector.X property's value (again, I'm not sure how Kismet works), then just multiply the original velocity vector with a new Vector(1,0), where 1 is the X component and Y is 0. This is gonna give you the velocity in the X plane as a vector. – Marton Oct 4 '12 at 20:16