Browse Source

Added default constructor for RayCast class that allows creating an uninitialized struct

jorrit 2 years ago
parent
commit
6e476f026a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jolt/Physics/Collision/RayCast.h

+ 1 - 0
Jolt/Physics/Collision/RayCast.h

@@ -14,6 +14,7 @@ struct RayCastT
 	JPH_OVERRIDE_NEW_DELETE
 
 	/// Constructors
+								RayCastT() = default; // Allow raycast to be created uninitialized
 								RayCastT(typename Vec::ArgType inOrigin, Vec3Arg inDirection) : mOrigin(inOrigin), mDirection(inDirection) { }
 								RayCastT(const RayCastT<Vec, Mat, RayCastType> &) = default;