mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 08:34:32 +02:00
#14 fix lookAt for enemies
This commit is contained in:
@@ -189,6 +189,10 @@ struct Enemy : Character {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void lookAt(Controller *target) {
|
||||||
|
Character::lookAt(targetInView ? target : NULL);
|
||||||
|
}
|
||||||
|
|
||||||
int turn(float delta, float speed) {
|
int turn(float delta, float speed) {
|
||||||
float w = speed * Core::deltaTime;
|
float w = speed * Core::deltaTime;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user