mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-30 05:52:10 +02:00
24 lines
713 B
C
24 lines
713 B
C
//
|
|
// PhysicsHelpers.h
|
|
// libraries/shared/src
|
|
//
|
|
// Created by Andrew Meadows 2015.01.27
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_PhysicsHelpers_h
|
|
#define hifi_PhysicsHelpers_h
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
const int PHYSICS_ENGINE_MAX_NUM_SUBSTEPS = 4;
|
|
const float PHYSICS_ENGINE_FIXED_SUBSTEP = 1.0f / 60.0f;
|
|
|
|
// return incremental rotation (Bullet-style) caused by angularVelocity over timeStep
|
|
glm::quat computeBulletRotationStep(const glm::vec3& angularVelocity, float timeStep);
|
|
|
|
#endif // hifi_PhysicsHelpers_h
|