1
This commit is contained in:
parent
5134533e6f
commit
225f9e6c29
@ -945,9 +945,8 @@ void Bullet::Raycast()
|
||||
sender.Get()->room->map_instance->Scale(end);
|
||||
bool ret = sender.Get()->room->map_instance->Raycast(0, start, end, hit_point, hit_result);
|
||||
if (ret) {
|
||||
raycast_hited = true;
|
||||
sender.Get()->room->map_instance->UnScale(hit_point);
|
||||
raycast_len_ = GlmHelper::Norm(hit_point - born_pos.ToGlmVec3());
|
||||
} else {
|
||||
raycast_len_ = 0.0f;
|
||||
}
|
||||
}
|
||||
|
@ -90,6 +90,7 @@ private:
|
||||
bool strengthened_ = false;
|
||||
std::list<int> buff_list_;
|
||||
bool raycasted_ = false;
|
||||
bool raycast_hited = false;
|
||||
float raycast_len_ = 0.0f;
|
||||
|
||||
friend class EntityFactory;
|
||||
|
Loading…
x
Reference in New Issue
Block a user