Fix ObstacleDetectionEvent
This commit is contained in:
parent
db29652124
commit
ff1322abb6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue