Add Catenary DC electrification layer, CommunityMapLocation fixes, and CI/CD
Deploy & Release / build-and-deploy (push) Successful in 1m3s
Deploy & Release / build-and-deploy (push) Successful in 1m3s
This commit is contained in:
11 files changed
+660
-20
No files matched your search
@@ -1,4 +1,4 @@
|
||||
using DV.OriginShift;
|
||||
using DV.OriginShift;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -7,6 +7,11 @@ namespace CommunityMapLocation.Api.Location
|
||||
public class LocationResponse
|
||||
{
|
||||
public LocationResponse(Transform playerTransform, bool reverse)
|
||||
: this(playerTransform, playerTransform, reverse)
|
||||
{
|
||||
}
|
||||
|
||||
public LocationResponse(Transform playerTransform, Transform rotationTransform, bool reverse)
|
||||
{
|
||||
var position = playerTransform.AbsolutePosition();
|
||||
|
||||
@@ -14,7 +19,8 @@ namespace CommunityMapLocation.Api.Location
|
||||
Y = position.y;
|
||||
Z = position.z;
|
||||
|
||||
var angle = playerTransform.rotation.eulerAngles.y;
|
||||
var targetTransform = rotationTransform != null ? rotationTransform : playerTransform;
|
||||
var angle = targetTransform.rotation.eulerAngles.y;
|
||||
|
||||
if (reverse)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user