shoot action in demo
This commit is contained in:
@@ -33,6 +33,11 @@ void Player::update(const Heightmap& heightmap) {
|
||||
|
||||
PlayerShootAction Player::getShootAction() const {
|
||||
PlayerShootAction action;
|
||||
action.isShooting = weapon.isShooting;
|
||||
|
||||
if (action.isShooting) {
|
||||
action.ray = Ray(camera.position, camera.lookAt);
|
||||
}
|
||||
|
||||
return action;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user