mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixes position state update and removes dev graphs for better fps
This commit is contained in:
parent
db95465208
commit
a8adbcf140
6 changed files with 55 additions and 29 deletions
|
|
@ -51,7 +51,8 @@ function (Parent, Settings, Nc, Assert) {
|
|||
this.lastServerPositionState = update;
|
||||
};
|
||||
|
||||
Me.prototype.isPositionStateUpdateNeeded = function() {
|
||||
// Checks if client should send out its position to server
|
||||
Me.prototype.isPositionStateOverrideNeeded = function() {
|
||||
|
||||
if(!this.doll) {
|
||||
return false;
|
||||
|
|
@ -73,7 +74,7 @@ function (Parent, Settings, Nc, Assert) {
|
|||
return false;
|
||||
};
|
||||
|
||||
Me.prototype.getPositionStateUpdate = function() {
|
||||
Me.prototype.getPositionStateOverride = function() {
|
||||
return {
|
||||
p: this.doll.body.GetPosition().Copy(),
|
||||
lv: this.doll.body.GetLinearVelocity().Copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue