Week 2 – UmLet

movement-cs

The UmLet is as follows:

runSpeed is a float variable which is used to register the speed for movement.

_crb is used to register the RigidBody, as the character moves by modifying the Rigidbody.

_anim is used to access the animator, in order to set up animations of the character when making the movement.

F_Right is used to verify if the player is facing the right direction, not the left one.

fr_bk is a variable which controls the movement on the z-axis, according to the camera set up

in_out is a variable which is used to control the movement on the x-axis, as well dependent on the camera set up

jmp is the variable used to register the value for the jump, that is used when moving on the y-axis

 

The results of the code are the basic movement on the x, y(jump), z axes and the turn around when going in a reverse direction.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s