#[OrbitCamera] orbits the origin, not the target

1 messages · Page 1 of 1 (latest)

hazy cypress
#

The title pretty much says it. I'm in TiXL v4.0.5.3, so if someone could reproduce this on the latest version that would be great.
To reproduce:

  • Create a 3D object and move it away from the origin (say, to 5,0,0)
  • Add [OrbitCamera] to the scene
  • Set the camera's target to the same position as the object (5,0,0)
  • Note that the camera points toward the object correctly, but does not orbit it anymore. It's still centered around the origin.
hybrid cosmos
#

I can reproduce it in Tixl 4.1.0.2 alpha
In OrbitCamera.cs commenting line 122 and uncommenting line 123 fixes the issue
use PositionOffset to decide where is the orbit center

#

maybe the OrbitCamera.cs fix I found is not the best way to do it

cold mulch
#

Good catch. Is this a regression?

hazy cypress
#

it's present in 3.9.3, lemme try some older versions...