MNFQDWY2XMYEGMI2FW5V7KZ3X24GDSVJZSALB43D7G7OOQ4RWHSQC
VYN2QOQBFRE5AAQO76D63IV3C4JF3YMXFHJZZ5AHIZOCJRCTFOEAC
G3FE5YP2OBTWE563KVAJTSUGIYNF3NDOVZSOP2DART725GPZRC3QC
FH6B7JGNWET7LFWZBWO4FZFXBJPYUWE7Q2M3VLQJSS377YVSUYHAC
AAMZTMKZ5IFWOTPGR3Q57QO6HJUIAXRU4R4NT276A4O4VTL42KEQC
VICUJP7SGKKCO2ZWO5ACSO3OS4HV4JTXTHQHYSFOADANGUJ5ZDDAC
J32UZAU7V6XDZUSDHMLVA474JC4S4AHMLZZN55XC74YMXW4ZMFKQC
R5KHFY6NVDHJJC5WNM4H5MXTVXRRZ2SLGL3LOWHGCEEF66KVBE7AC
MKB2A5XCWBZO2E6QFE6PD36LF3IGMJCGJB5TGMRAPSKCKHS75ISAC
ELGDDPUWFOH6ELJVCFVNUQJQRB44G66BJXVQWQGQHNUWYA3XQJVQC
}
fn make_polly_think(
mut query: Query<(&mut movement::Movable, &Transform, &mut PollyBrain), With<Polly>>,
) {
let Ok((mut movable, transform, mut thunk)) = query.get_single_mut() else {
return;
};
if thunk.thinking {
let mut context = (transform.translation.truncate(), movable.velocity);
if let Some(res) = thunk.runner.proceed(&mut context) {
info!("Thunking complete step: {context:?} {res}");
}
movable.velocity = context.1;
}
if thunk.thinking {
if let Some(movable) = movable.as_mut() {
let mut context = (transform.translation.truncate(), movable.velocity);
if let Some(res) = thunk.runner.proceed(&mut context) {
info!("Thunking complete step: {context:?} {res}");
}
movable.velocity = context.1;
}
}