AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
SurfaceVelocityContactFilter.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
20#include <agx/TimeStamp.h>
21
22#include <agxCollide/Contacts.h>
23
26
27namespace agxUtil
28{
29
44 {
45 public:
46
48
49 virtual KeepContactPolicy impact(const agx::TimeStamp& time, agxCollide::GeometryContact *geometryContact) override;
50
51 virtual KeepContactPolicy contact(const agx::TimeStamp& time, agxCollide::GeometryContact* geometryContact) override;
52
53 private:
54 void processContact(agxCollide::GeometryContact* geometryContact);
55
56 };
57
58
59}
#define AGXPHYSICS_EXPORT
A contact between two geometries.
Definition Contacts.h:271
Derive from this class to implement a listener for Collision events.
KeepContactPolicy
Defines whether contact should be kept or removed after contact/impact methods returns.
Abstract base class that implements a filter that selects which events should trigger a Listener.
This is a utility class that disables ContactPoints where the contact normal prevents movement along ...
virtual KeepContactPolicy impact(const agx::TimeStamp &time, agxCollide::GeometryContact *geometryContact) override
Called upon impact event if getFilter() contain IMPACT.
virtual KeepContactPolicy contact(const agx::TimeStamp &time, agxCollide::GeometryContact *geometryContact) override
Called upon contact event if getFilter() contain CONTACT.
SurfaceVelocityContactFilter(agxSDK::ExecuteFilter *filter=nullptr)
The agxUtil namespace contain classes and methods for utility functionality.
agx::Real TimeStamp
Definition TimeStamp.h:26