mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Updates to various components, added a few new ones.
This commit is contained in:
parent
775ca57047
commit
34d05ff16f
52 changed files with 4566 additions and 1799 deletions
34
Engine/source/T3D/components/game/interactComponent.h
Normal file
34
Engine/source/T3D/components/game/interactComponent.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
|
||||
#include "T3D/components/component.h"
|
||||
|
||||
|
||||
class InteractComponent : public Component
|
||||
{
|
||||
typedef Component Parent;
|
||||
|
||||
bool mUseRaycastInteract;
|
||||
bool mUseRenderedRaycast;
|
||||
bool mUseRadiusInteract;
|
||||
|
||||
F32 mInteractRadius;
|
||||
F32 mInteractRayDist;
|
||||
|
||||
//Adjusts the length of the ray based on the idea of further reach if you look down because of crouching
|
||||
bool mUseNaturalReach;
|
||||
|
||||
public:
|
||||
InteractComponent();
|
||||
~InteractComponent();
|
||||
|
||||
DECLARE_CONOBJECT(InteractComponent);
|
||||
|
||||
virtual bool onAdd();
|
||||
virtual void onRemove();
|
||||
static void initPersistFields();
|
||||
|
||||
virtual void onComponentAdd();
|
||||
virtual void onComponentRemove();
|
||||
|
||||
virtual void processTick();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue