Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenEndedGroup/Field2
/ setTarget
Method
setTarget
src/main/java/trace/graphics/SimpleCamera.kt:20–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
18
}
19
20
fun setTarget(v: Vec3) {
21
camera.advanceState {
22
val s = it.copy()
23
s.target %= v
24
s
25
}
26
updateState()
27
}
28
29
fun getUp(): Vec3 {
30
return Vec3(camera.state.up)
Callers
nothing calls this directly
Calls
2
advanceState
Method · 0.80
copy
Method · 0.45
Tested by
no test coverage detected