Code cleanup.
This commit is contained in:
@@ -29,7 +29,10 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
protected override void StartPreGraphicalUpdate(ContainerState s) {
|
||||
base.StartPreGraphicalUpdate(s);
|
||||
spos = Vector3.zero;
|
||||
TransformAwake(s);
|
||||
bpos = Position;
|
||||
brot = Rotation;
|
||||
}
|
||||
protected override void StartGraphicalUpdate(ContainerState s) {
|
||||
base.StartGraphicalUpdate(s);
|
||||
@@ -46,11 +49,6 @@ namespace Cryville.Crtr {
|
||||
pwp = Vector3.zero;
|
||||
cpt = s.ScreenPoint;
|
||||
ptime = s.Time;
|
||||
if (s.CloneType == 3) {
|
||||
spos = Vector3.zero;
|
||||
bpos = cpt;
|
||||
brot = Quaternion.Euler(s.Direction);
|
||||
}
|
||||
Position = pwp + cpt + spos;
|
||||
Rotation = Quaternion.Euler(s.Direction);
|
||||
}
|
||||
@@ -112,7 +110,7 @@ namespace Cryville.Crtr {
|
||||
protected override void EndGraphicalUpdate(ContainerState s) {
|
||||
base.EndGraphicalUpdate(s);
|
||||
EndUpdatePosition(s);
|
||||
var p = pwp + cpt + spos;
|
||||
var p = Position;
|
||||
foreach (var i in sgos) {
|
||||
i.AppendPoint(p, s.QuatDir);
|
||||
i.Seal();
|
||||
|
Reference in New Issue
Block a user