Minor Changes

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-06-26 21:23:13 +02:00
parent fdf34f99c6
commit eb27ae4c24
346 changed files with 17218 additions and 86 deletions
Regular → Executable
-1
View File
@@ -1,6 +1,5 @@
this.on_init = function()
this.speed = 0.1
this.original_position = this.position
this.angles = Vec3:new()
this.mouse_sens = 0.01
end
+7
View File
@@ -7,4 +7,11 @@ this.on_update = function()
local deltaMouseMovement = Input.getDeltaMousePos()
this.angles.x = this.angles.x - deltaMouseMovement.y * this.mouse_sens
this.eulerAngles = this.angles
if Input.getKeyJustPressed(Input.KeyCode.O) then
box = loadPrefab("prefabs://BrainStem.pf")
box.position = this.worldPosition + (this.forward * 2)
boxBody = box:getComponent(Rigidbody)
boxBody:addForce(this.forward * 3000)
end
end
Regular → Executable
View File
Regular → Executable
View File