mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
TODO
This commit is contained in:
parent
07adc79209
commit
d2f6d0b52e
@ -40,6 +40,7 @@ namespace NewHorizons.Components.SizeControllers
|
|||||||
private void UpdateTargetPositions()
|
private void UpdateTargetPositions()
|
||||||
{
|
{
|
||||||
// body is null for proxies
|
// body is null for proxies
|
||||||
|
// TODO: this will make proxy tails face the real body rather than proxy body (ie wrong). fix properly in a different PR
|
||||||
var toPrimary = ((_body ? _body.transform : transform).position - _dustTargetBody.transform.position).normalized;
|
var toPrimary = ((_body ? _body.transform : transform).position - _dustTargetBody.transform.position).normalized;
|
||||||
var velocityDirection = (_primaryBody?.GetVelocity() ?? Vector3.zero) - (_body ? _body.GetVelocity() : Vector3.zero); // Accept that this is flipped ok
|
var velocityDirection = (_primaryBody?.GetVelocity() ?? Vector3.zero) - (_body ? _body.GetVelocity() : Vector3.zero); // Accept that this is flipped ok
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user