CharacterBase.cpp 420 B

123456789101112131415161718
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #include <Jolt/Jolt.h>
  4. #include <Jolt/Physics/Character/CharacterBase.h>
  5. JPH_NAMESPACE_BEGIN
  6. CharacterBase::CharacterBase(const CharacterBaseSettings *inSettings, PhysicsSystem *inSystem) :
  7. mSystem(inSystem),
  8. mShape(inSettings->mShape)
  9. {
  10. // Initialize max slope angle
  11. SetMaxSlopeAngle(inSettings->mMaxSlopeAngle);
  12. }
  13. JPH_NAMESPACE_END