public CubismPhysicsInput(BinaryReader reader) { SourceId = reader.ReadAlignedString(); ScaleOfTranslation = reader.ReadVector2(); AngleScale = reader.ReadSingle(); Weight = reader.ReadSingle(); SourceComponent = (CubismPhysicsSourceComponent)reader.ReadInt32(); IsInverted = reader.ReadBoolean(); reader.AlignStream(); }
public CubismPhysicsOutput(BinaryReader reader) { DestinationId = reader.ReadAlignedString(); ParticleIndex = reader.ReadInt32(); TranslationScale = reader.ReadVector2(); AngleScale = reader.ReadSingle(); Weight = reader.ReadSingle(); SourceComponent = (CubismPhysicsSourceComponent)reader.ReadInt32(); IsInverted = reader.ReadBoolean(); reader.AlignStream(); }