The Skung Cave commit

This commit is contained in:
2024-05-09 20:52:01 +10:00
parent 446c444728
commit 9461fe08cf
35 changed files with 11988 additions and 9097 deletions

View File

@ -3,7 +3,7 @@ import simd
import JolkEngine
class JolkCube: Actor
struct JolkCube: Actor
{
private var _pos: Vec3f
private var theta: Float = 0.0
@ -15,7 +15,7 @@ class JolkCube: Actor
var position: Vec3f { _pos }
func update(deltaTime: Float, world: Collision)
mutating func update(deltaTime: Float, world: Collision)
{
theta += 15 * deltaTime
_pos.y = 1 + sin(theta * 0.25) * 0.25