JoltPhysics3D: Add RaycastQuery and RaycastQueryFirst
This commit is contained in:
committed by
Jérôme Leclercq
parent
707a486e74
commit
b3595178a1
@@ -38,7 +38,8 @@ namespace Nz
|
||||
inline JoltPhysWorld3D& GetPhysWorld();
|
||||
inline const JoltPhysWorld3D& GetPhysWorld() const;
|
||||
|
||||
bool RaycastQueryFirst(const Vector3f& from, const Vector3f& to, RaycastHit* hitInfo = nullptr);
|
||||
bool RaycastQuery(const Vector3f& from, const Vector3f& to, const FunctionRef<std::optional<float>(const RaycastHit& hitInfo)>& callback);
|
||||
bool RaycastQueryFirst(const Vector3f& from, const Vector3f& to, const FunctionRef<void(const RaycastHit& hitInfo)>& callback);
|
||||
|
||||
void Update(Time elapsedTime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user