public override void createFrom(SyncBody body) { base.createFrom(body); pos = new PackedVec2(body.pos); vel = new PackedVec2(body.velocity); angle = body.angle; angularVelocity = body.angularVelocity; }
public Body(long ownerUid, long lastSnapshotTime, long lastReceivedTime, uint id, uint syncTag, PackedVec2 pos, PackedVec2 vel, float angle, float angularVelocity) { this.ownerUid = ownerUid; this.lastSnapshotTime = lastSnapshotTime; this.lastReceivedTime = lastReceivedTime; this.id = id; this.syncTag = syncTag; this.pos = pos; this.vel = vel; this.angle = angle; this.angularVelocity = angularVelocity; }