File affine_body_prismatic_joint_external_force.h
File List > constitution > affine_body_prismatic_joint_external_force.h
Go to the documentation of this file
#pragma once
#include <uipc/constitution/constraint.h>
#include <uipc/geometry/simplicial_complex.h>
namespace uipc::constitution
{
class UIPC_CONSTITUTION_API AffineBodyPrismaticJointExternalForce final : public Constraint
{
using Base = Constraint;
public:
AffineBodyPrismaticJointExternalForce(const Json& config = default_config());
~AffineBodyPrismaticJointExternalForce() override;
void apply_to(geometry::SimplicialComplex& sc, Float force = Float{0});
void apply_to(geometry::SimplicialComplex& sc, span<Float> forces);
static Json default_config();
private:
virtual U64 get_uid() const noexcept override;
Json m_config;
};
} // namespace uipc::constitution