Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rcastro2/aframemovement


https://github.com/rcastro2/aframemovement

aframe aframe-physics-system

Last synced: 23 days ago
JSON representation

Awesome Lists containing this project

README

        

AFrame Movement
==============

aframe-physics-system is a JavaScript library which can be used to simulate physics on various components created using
aframe.io
, a web framework for building 3D/AR/VR experiences. This project explores the ability to add physics capabilities to the camera so that the player may interact with the world. Currently the project explores preventing the camera from
walking through walls, pushing dynamic objects and jumping on to static and dynamic objects.

Movement


UP ARROW or W: Move in the direction the camera is facing.

LEFT / RIGHT ARROW or A / D: Strafe movement left or right.

DOWN ARROW or S: Move in the opposite direction the camera is facing.

SPACE: Jumping (Under Development)

Comments


By using syncToPhyics() function from the aframe-physics-system, the movement can be controlled through JavaScript while adhering to the rules of the physics system. This prevents the camera from moving through static bodies and allows the camera to push dynamic bodies. The jumping functionality has proven to be more challenging and its behavior is currently inconsistent.