public void OnTeleportApply(Frame frame) { for (int eid = 0; eid < transformElements.Length; eid++) { TransformElement te = transformElements[eid]; if (te.teleportOverride) { te.Teleport(frame.elements[eid].transform); } } }
public void OnSvrTeleportCmd() { for (int eid = 0; eid < transformElements.Length; eid++) { TransformElement te = transformElements[eid]; if (te.teleportOverride) { te.Teleport(); } } }
/// <summary> /// Teleport all elements that are flagged with teleportOverride = true; /// </summary> public void OnRcvSvrTeleportCmd(Frame frame) { for (int eid = 0; eid < elementCount; ++eid) { TransformElement te = transformElements[eid]; // TODO: this likely is only wired to work correctly with offtick if (te.teleportOverride) { te.Teleport(frame); } } }
//public void OnSvrTeleportCmd() //{ // for (int eid = 0; eid < elementCount; ++eid) // { // TransformElement te = transformElements[eid]; // if (te.teleportOverride) // te.Teleport(); // } //} public void OnTeleportApply(Frame frame) { for (int eid = 0; eid < elementCount; ++eid) { TransformElement te = transformElements[eid]; //TODO this should be checking for the elements mask? // TODO: Uncertain about this check for null - should be testing for whether or not this element has any info to teleport with. if (te.teleportOverride) { te.Teleport(frame); } } }
/// <summary> /// Teleport all elements that are flagged with teleportOverride = true; /// </summary> public void OnRcvSvrTeleportCmd(Frame frame) { for (int eid = 0; eid < transformElements.Length; eid++) { TransformElement te = transformElements[eid]; // TODO: this likely is only wired to work correctly with offtick if (te.teleportOverride) { te.Teleport(frame.elements[eid].compTrans, frame.elements[eid].transform); } } }