A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AlmasB/FXGL/commit/220601df4 below:

TransformComponent can bind its translate X Y Z to another Tran… · AlmasB/FXGL@220601d · GitHub

@@ -434,6 +434,15 @@ class TransformComponent(x: Double, y: Double, angle: Double, scaleX: Double, sc

434 434

direction3D = Point3D(direction3D.x, -sinDeg(rotationX), direction3D.z * cosDeg(rotationX)).normalize()

435 435

}

436 436 437 +

/**

438 +

* Binds x,y,z of this component to x,y,z of [other].

439 +

*/

440 +

fun bindTranslation(other: TransformComponent) {

441 +

xProperty().bind(other.xProperty())

442 +

yProperty().bind(other.yProperty())

443 +

zProperty().bind(other.zProperty())

444 +

}

445 + 437 446

override fun toString(): String {

438 447

return "Transform($x, $y, $angle, $scaleX, $scaleY)"

439 448

}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4