I see, no problem. I was expecting that this might be pretty far out there.
Thanks anyways!
LuxxorOne
@LuxxorOne
Best posts made by LuxxorOne
Latest posts made by LuxxorOne
-
RE: Some questions regarding KorGe3D
-
RE: Some questions regarding KorGe3D
Also I tried to track a 'cube' which moves in 3D space with a drawn 'rect' in 2D space.
val cube = box().position(1, 1 ,1) val rect = solidRect(50, 50, Colors["#6d95ff3d"]).xy(10,10) rect.addHrUpdater { rect.xy(cube9.x, cube9.y) } tweenAsync(cube::x[10], time = 3.seconds, easing = Easing.EASE_IN_OUT) tweenAsync(cube::y[5], time = 2.seconds, easing = Easing.EASE_IN_OUT) tweenAsync(cube::z[400], time = 10.seconds, easing = Easing.EASE_IN_OUT)
Obviously this didnt't work so well...
Any idea how this can be done? (That way I could fake clickable 3D objects for now...) -
Some questions regarding KorGe3D
I know that KorGe3D is in preview/experimental but I still got some questions:
-
Is it possible to assign a color to a material without applying a texture?
I tried to find out how to do that but I couldn't make it work. -
Is there already any way to check for overlaps? (Not physics, just general overlaps)
I think this probably can be done in code directly but I only know how to do this in Haxe, not in Kotlin/KorGE. -
Mipmapping?
Thanks.
-
-
RE: Tweens of anything else but position/rotation...
I just found that out by myself, lol.
This is so easy, I was looking to get the bytes r/g/b separate...
Very cool! -
Text input / Text input field?
Hey there.
Is there any way to get text input? Like for getting player name (i.e. for high score list), etc?
Thanks.
-
Tweens of anything else but position/rotation...
For example: How can I do tweening of colors or other parameters?
I tried to read up on "bound callable references" but still don't really understand them in this context.
I get it when I write something like this:
fun addTwo(x: Int) = x + 2 var list = listOf(1, 2, 3, 4).map(::addTwo) // # => [3, 4, 5, 6] println(list)
But I don't understand this:
You have to use bound callable references to define properties that will change"
Can someone give an example in KorGE context how to tween a non-trivial/arbitrary parameter please (like color?
I also don't get how to get bytes data from RGBA color in general btw. )Thanks.