n5ro / aframe-physics-system

Physics system for A-Frame VR, built on CANNON.js.
https://n5ro.github.io/aframe-physics-system/
MIT License
507 stars 137 forks source link

Replace setAttribute call in velocity.js #121

Closed InfiniteLee closed 5 years ago

InfiniteLee commented 5 years ago

don't use get/setAttribute; read/set object3D.posiiton directly to avoid overhead of calling setAttribute.

InfiniteLee commented 5 years ago

Just something we noticed that was still taking unnecessary frame time in Hubs.

donmccurdy commented 5 years ago

Thanks!