Krystian
12/29/2022, 11:22 PM@kotlinx.cinterop.internal.CStruct public final class Camera2D public constructor(rawPtr: kotlinx.cinterop.NativePtr /* = kotlin.native.internal.NativePtr */) : kotlinx.cinterop.CStructVar {
@kotlinx.cinterop.internal.CStruct.VarType @kotlin.Deprecated public companion object : kotlinx.cinterop.CStructVar.Type {
}
public final val offset: kaylib.Vector2 /* compiled code */
public final var rotation: kotlin.Float /* compiled code */
public final val target: kaylib.Vector2 /* compiled code */
public final var zoom: kotlin.Float /* compiled code */
}
offset and target are both vals and I can't simply modify them once alloc'ed, but I can modify their values which are .x and .y which isn't that much of a problem, but it does cause a little bit of dull modifications of .x and .y one by one (and I'm very sure its for a good reason)
There is no other way to mitigate this at all by somehow being able to mutate offset or target as one, rather than mutating its members?Landry Norris
12/30/2022, 2:11 PMcamera2D->target = something else
, it’s a shortcut for setting x and y.Landry Norris
12/30/2022, 2:12 PMVector2.set(other: Vector2)
Krystian
12/30/2022, 3:04 PMKrystian
12/30/2022, 3:11 PMKrystian
12/30/2022, 3:11 PMLandry Norris
12/30/2022, 3:12 PMKrystian
12/30/2022, 3:22 PMLandry Norris
12/30/2022, 3:23 PMKrystian
12/30/2022, 3:32 PMLandry Norris
12/30/2022, 3:34 PMKrystian
12/30/2022, 3:46 PM