Skip to content

Commit

Permalink
remove unnecessary part from demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshikiohshima committed Nov 13, 2023
1 parent 9a7d5b1 commit 27fcea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions behaviors/default/drive.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {ActorBehavior, PawnBehavior} from "../PrototypeBehavior";

class DriveActor extends ActorBehavior {
setup() {
if (this.speed === undefined) this.speed = 0.1;
if (this.speed === undefined) this.speed = 0.08;
if (this.angle === undefined) this.angle = 0.02;
if (this.running === undefined) {
this.running = true;
Expand All @@ -24,12 +24,6 @@ class DriveActor extends ActorBehavior {
this.future(20).run();
this.rotateBy([0, -this.angle, 0]);
this.forwardBy(this.speed);
if (this.avatar) {
let t = this._translation;
this.avatar._translation = [t[0], t[1] + 1.6, t[2]];
this.avatar._rotation = this._rotation;
this.avatar.say("forceOnPosition");
}
}
/*
newAngle(angle) {
Expand Down
2 changes: 1 addition & 1 deletion worlds/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function init(Constants) {
{
card: {
name: "drive code editor",
translation: [149.7867578489887, 1.05, -91.04373902664706],
translation: [149.7867578489887, 0.95, -91.04373902664706],
rotation: [0, -0.8748879560491569, 0, 0.4843253703453173],
layers: ["pointer"],
type: "code",
Expand Down

0 comments on commit 27fcea2

Please sign in to comment.