fixed mimics in 3D nonisotropic
This commit is contained in:
parent
7f9ffe14af
commit
e192506943
|
@ -1404,8 +1404,10 @@ void moveMimic(monster *m) {
|
||||||
|
|
||||||
// no need to care about Mirror images, as they already have their 'at' matrix reversed :|
|
// no need to care about Mirror images, as they already have their 'at' matrix reversed :|
|
||||||
|
|
||||||
if(WDIM == 3)
|
if(WDIM == 3) {
|
||||||
nat = nat * cpush(0, playerstrafe[cpid]) * cpush(2, playergo[cpid]) * cspin(0, 2, playerturn[cpid]) * cspin(1, 2, playerturny[cpid]);
|
nat = parallel_transport(nat, m->ori, playersmallspin[cpid] * point3(playerstrafe[cpid], 0, playergo[cpid]));
|
||||||
|
rotate_object(nat, m->ori, cspin(0, 2, playerturn[cpid]) * cspin(1, 2, playerturny[cpid]));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
nat = nat * spin(playerturn[cpid] + playergoturn[cpid]) * xpush(playergo[cpid]) * spin(-playergoturn[cpid]);
|
nat = nat * spin(playerturn[cpid] + playergoturn[cpid]) * xpush(playergo[cpid]) * spin(-playergoturn[cpid]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue