Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AleziaKurdis committed Aug 26, 2023
1 parent b78c532 commit 79f60c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PLANETOID/planetarGravityWithHollowGravity.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
var localUp = Quat.getUp(MyAvatar.orientation);
if (Vec3.distance(planet.position, MyAvatar.position) <= HOLLOW_GRAVITY_INVERSION_RADIUS) {
//localUp = Quat.inverse(localUp);
localUp = Vec3.subtract(localUp, Vec3.ZERO);
direction = Vec3.subtract(planet.position, MyAvatar.position);
}
MyAvatar.orientation = Quat.normalize(Quat.multiply(Quat.rotationBetween(localUp, direction), MyAvatar.orientation));
MyAvatar.orientation = Quat.normalize(Quat.multiply(Quat.rotationBetween(localUp, direction), MyAvatar.orientation));
if (hmdMode === false) {
Camera.mode = "third person";
} else {
Expand Down

0 comments on commit 79f60c1

Please sign in to comment.