53 virtual const char*
type()
const;
68 virtual void setDetectionProximity(
double);
69 virtual double detectionProximity()
const;
73 virtual void senseObjects(
const DtRwObjectTypeList&,
bool hostileOnly,
bool detectOwnForce);
76 virtual void setObjectTypesToDetect(
const std::vector<std::string>&,
bool hostileOnly);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
std::vector< DtObjectType > myObjectTypesToDetect
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:105
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
virtual void bindLuaFunctions(lua_State *)=0
Override to bind lua functions.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
Definition: bindableLuaComponent.h:53
DtSimpleProximitySensorDescriptor; descriptor for the DtSimpleProximitySensor component.
Definition: simpleProximitySensorDescriptor.h:29
DtSimpleProximitySensor senses supplied objects within the given distance. Provides lua bindings for ...
Definition: simpleProximitySensor.h:25
class DtSimpleProximitySensorPSR:
Definition: simpleProximitySensorPSR.h:24
class DtRwObjectTypeList:
Definition: rwObjectTypeList.h:30
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Contains the DtSimComponent class declaration.
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtSimpleProximitySensorDescriptor * myDescriptor
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:110
virtual void bindLuaGlobals(lua_State *)=0
Override to bind lua globals.
DtSimpleProximitySensorPSR * myProcessState
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:108
DtSensorContactInfoList myContactInfoList
Outputs: Output Port Name: detected-objects Output Port Description: The list of contacts detected b...
Definition: simpleProximitySensor.h:106
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86