Skip to content

crazyramirez/babylonjs-character-navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babylonjs-character-navigation




This is a simple Character Navigation demo using Babylon JS 6.

Setup NPM and Install BJS

  • Install NodeJS from https://nodejs.org/en
  • Download or Clone this Repository
  • Open a Terminal (Usign for example VSCode)
  • RUN: npm install (To Install BJS Libraries from NPM)

Main Code

  • Everything is in main.js and controller.js in js folder.
  • Very simple, take a look and I hope you enjoy it

The main purpose is to use linear movement and in this case don´t use physics. The character moves using MoveWithCollisions function and simulates gravity.

Control is easy Use WASD controls and arrows on the computer and Space to Jump. On mobile use the Left Stick for movement, the Right Stick to turn the character and Button to Jump.

Try the Live DEMO https://www.viseni.com/character_navigation

-- TO DO --

  • Clean & improve code ✓
  • Improve jump movement ✓
  • Add new animiations (Jumping, Falling...)
  • Add support for double jump
  • Add a nice 3D Environment Scene

About

This is a simple Character Navigation demo using Babylon JS 6.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published