-
-
Notifications
You must be signed in to change notification settings - Fork 205
Closed
Description
In the Cube::update function, size and center is swapped so if you call update it'll mess up the geometry.
The fix should be simple but didn't have time to make any tests to submit a proper PR so thought I'd flag this up first.
fun update(
engine: Engine,
center: Position = this.center,
size: Size = this.size
) = apply {
update(engine = engine, vertices = getVertices(center, size)) // size and center are swapped
// Fix should just be to swap them back i.e.
// getVertices(size, center)
this.center = center
this.size = size
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels