You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eater
eff722ea05
continuous-integration/drone/push Build is passing
Details
|
5 years ago | |
---|---|---|
examples | 5 years ago | |
gradle/wrapper | 5 years ago | |
script | 5 years ago | |
threedom | 5 years ago | |
threedom-kapt | 5 years ago | |
.drone.yml | 5 years ago | |
.gitignore | 5 years ago | |
README.md | 5 years ago | |
build.gradle | 5 years ago | |
gradle.properties | 5 years ago | |
gradlew | 5 years ago | |
gradlew.bat | 5 years ago | |
settings.gradle | 5 years ago |
README.md
3DOM
A SceneGraph written as if it's a DOM
fun main() {
val doc = Document()
val node = doc.createNode<PlainNode>()
node.model { setTranslation(10, 30, 3) }
doc.on<DOMTreeUpdate.Insert> { (ev) ->
println("Node has been added at ${ev.absolute.translation}")
}
doc.addNode(node)
doc.inRange(Vector3d(0, 0, 0), 50).forEach {
println("Node found at ${it.absolute.translation}")
}
}