Fix ObstacleDetectionEvent

This commit is contained in:
nsubiron 2019-03-29 16:26:04 +01:00
parent db29652124
commit ff1322abb6
1 changed files with 2 additions and 4 deletions

View File

@ -27,7 +27,6 @@ namespace data {
explicit ObstacleDetectionEvent(const RawData &data)
: Super(data),
//_deserialized_data(),
_self_actor(nullptr),
_other_actor(nullptr) {
auto ddata = Serializer::DeserializeRawData(data);
@ -48,8 +47,8 @@ namespace data {
return _other_actor.Get(GetEpisode());
}
/// Normal impulse result of the collision.
double GetDistance() const {
/// Get obstacle distance.
float GetDistance() const {
return _distance;
}
@ -60,7 +59,6 @@ namespace data {
client::detail::ActorVariant _other_actor;
float _distance;
};
} // namespace data