mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
19 lines
No EOL
876 B
C++
19 lines
No EOL
876 B
C++
//
|
|
// Created by Sam Gondelman 7/2/2018
|
|
// Copyright 2018 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
|
|
//
|
|
#include "StaticParabolaPick.h"
|
|
|
|
StaticParabolaPick::StaticParabolaPick(const glm::vec3& position, const glm::vec3& direction, float speed, const glm::vec3& accelerationAxis,
|
|
bool scaleWithAvatar, bool rotateAccelerationWithAvatar, const PickFilter& filter, float maxDistance, bool enabled) :
|
|
ParabolaPick(speed, accelerationAxis, rotateAccelerationWithAvatar, scaleWithAvatar, filter, maxDistance, enabled),
|
|
_position(position), _velocity(direction)
|
|
{
|
|
}
|
|
|
|
PickParabola StaticParabolaPick::getMathematicalPick() const {
|
|
return PickParabola(_position, getSpeed() * _velocity, getAcceleration());
|
|
} |