#Walking system

1 messages · Page 1 of 1 (latest)

rare jackal
#

I just want to create basic walking system for my parkour game similar to parkour legacy
error:
InvalidConversionException: Cannot convert from 'UnityEngine.Vector3' to 'System.Single'.

knotty hill
#

you have to switch the A and B inputs of the multiply nodes
when you want to multiply a vector3 and a float it has to be "vector3 X float", not "float X vector3"

rare jackal
#

Itried switching every A and B inputs in multiply but it didnt work

knotty hill
#

it gives the same error ?

rare jackal
#

ye

#

and it is stuck in the same place

#

I tried searching for some basic movement system but I couldnt find even just 1 :/

knotty hill
#

oh i didnt see a thing
what comes out of the multiply nodes is a vector3, not a float

#

and you're putting that into a float input

#

mybad

#

you should add the two vectors instead of putting them into a vector3create node

#

like that

knotty hill
rare jackal
#

it works

#

thank you

#

what does transform get right do?

knotty hill
#

it gives you the direction "right" of that object in world space

getfoward basically gives you a vector that points in the direction the object is "looking"
get right is the same, but 90° to the right, it gives you the rightward direction

rare jackal
#

ok

#

the character is falling very slowly :/

knotty hill
#

you should add force instead of set linear velocity

rare jackal
#

ok

#

works really good
while on ground it moves like on ice

#

should I change ground property or try doing that with script?