Skip to content

Commit

Permalink
Rename physics lifecycle methods and update physics dep.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Nov 25, 2017
1 parent ba54a80 commit d99280f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc/kinematic-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ module.exports = AFRAME.registerComponent('kinematic-body', {
* If in contact with two ground surfaces (e.g. ground + ramp), choose
* the one that collides with current velocity, if any.
*/
updateBefore: function (t, dt) {
beforeStep: function (t, dt) {
if (!dt) return;

this.body.velocity.copy(this.el.getAttribute('velocity'));
this.body.position.copy(this.el.getAttribute('position'));
},

updateAfter: (function () {
step: (function () {
var velocity = new THREE.Vector3(),
normalizedVelocity = new THREE.Vector3(),
currentSurfaceNormal = new THREE.Vector3(),
Expand Down

0 comments on commit d99280f

Please sign in to comment.