position
changed from position_cache
? Update the cache at the same time
# Has `position` changed from `position_cache`? Update the cache at the same time
private fun check_position_changed: Bool
do
if position.x != position_cache.x or
position.y != position_cache.y or
position.z != position_cache.z then
position_cache.x = position.x
position_cache.y = position.y
position_cache.z = position.z
return true
end
return false
end
lib/gamnit/cameras_cache.nit:25,2--37,4
redef fun check_position_changed
do
if super then return true
if light.pitch != pitch_cache or
light.yaw != yaw_cache or
light.width != width_cache or
light.height != height_cache or
light.depth != depth_cache then
pitch_cache = light.pitch
yaw_cache = light.yaw
width_cache = light.width
height_cache = light.height
depth_cache = light.depth
return true
end
return false
end
lib/gamnit/depth/more_lights.nit:91,2--109,4