ShapeCreator.h 612 B

1234567891011121314151617
  1. // SPDX-FileCopyrightText: 2022 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #pragma once
  4. #include <Jolt/Physics/Collision/Shape/MeshShape.h>
  5. namespace ShapeCreator
  6. {
  7. /// Create a mesh shape in the shape of a torus
  8. /// @param inTorusRadius Radius of the torus ring
  9. /// @param inTubeRadius Radius of the torus tube
  10. /// @param inTorusSegments Number of segments around the torus
  11. /// @param inTubeSegments Number of segments around the tube of the torus
  12. /// @return The mesh shape
  13. ShapeRefC CreateTorusMesh(float inTorusRadius, float inTubeRadius, uint inTorusSegments = 16, uint inTubeSegments = 16);
  14. };