Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rcastro2/aframemovement
https://github.com/rcastro2/aframemovement
aframe aframe-physics-system
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rcastro2/aframemovement
- Owner: rcastro2
- Created: 2024-03-05T14:27:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-05T15:41:52.000Z (10 months ago)
- Last Synced: 2024-03-05T16:57:47.598Z (10 months ago)
- Topics: aframe, aframe-physics-system
- Language: JavaScript
- Homepage: https://rcastro2.github.io/AFrameMovement/
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.