godot_voxel/edition/voxel_raycast_result.h

24 lines
540 B
C++

#ifndef VOXEL_RAYCAST_RESULT_H
#define VOXEL_RAYCAST_RESULT_H
#include "../util/math/vector3i.h"
#include <core/reference.h>
// This class exists only to make the script API nicer.
class VoxelRaycastResult : public Reference {
GDCLASS(VoxelRaycastResult, Reference)
public:
Vector3i position;
Vector3i previous_position;
float distance_along_ray;
private:
Vector3 _b_get_position() const;
Vector3 _b_get_previous_position() const;
float _b_get_distance() const;
static void _bind_methods();
};
#endif // VOXEL_RAYCAST_RESULT_H