Creating a Zombie Shooter — Setting things up and making a physics-based player controller.

//get handle to character controller.
//WASD Keys for movement
//input system (horizontal, vertical)

//direction = vector to move
//velocity = direction * speed

//if jump
//velocity = new velocity with added y.

//controller.move(velocity * time.delta)

Get handle to character controller:

WASD Movement

Direction = Vector to move

Velocity:

Controller.Move:

--

--

--

cartoonist, game artist, and wanabe gamedev.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Share a file from latakoo.com

Updating dimensions in Snowflake data warehouse

READ/DOWNLOAD%* Portable Shell Programming: An Ext

Development updates

Alitas April Monthly Report

StreamElements Supercharges Trovo with Robust Suite of Tools

How to Develop “AS-IS” Business Process Map

The perfect dorm room assignment: Exploring the bipartite matching problem with Neo4j

Bipartite graph showing rooms and students

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Esteban Ibarra

Esteban Ibarra

cartoonist, game artist, and wanabe gamedev.

More from Medium

Cleaning up the Homing Missile code

P5: Creating a Gritty Office Den

Using Unity’s ProBuilder To Model A Sci-Fi Container

Creating Elevator in Unity — Part 3: Moving Elevator.