struct IEntityPhysicalProxy : public IEntityProxy { };
IEntityProxy.h
Physical proxy interface.
virtual void AddImpulse(int ipart, const Vec3 & pos, const Vec3 & impulse, bool bPos, float fAuxScale, float fPushScale = 1.0f) = 0;
Add impulse to physical entity.
virtual void AssignPhysicalEntity(IPhysicalEntity * pPhysEntity, int nSlot = -1) = 0;
Parameters |
Description |
IPhysicalEntity * pPhysEntity |
The pre-created physical entity. |
int nSlot = -1 |
Slot Index to which the new position will be taken from. |
Assign a pre-created physical entity to this proxy.
virtual void DephysicalizeFoliage(int iSlot) = 0;
dephysicalizes the foliage in slot iSlot
virtual void EnableNetworkSerialization(bool enable) = 0;
Enable/disable network serialisation of the physics aspect
virtual void EnablePhysics(bool bEnable) = 0;
Enable or disable physical simulation.
virtual struct IFoliage * GetFoliage(int iSlot) = 0;
returns foliage object in slot iSlot
virtual void GetLocalBounds(AABB & bounds) = 0;
Parameters |
Description |
AABB & bounds |
Returns Bounding box in local entity space. |
Get local space physical bounding box.
virtual int GetPartId0() = 0;
retrieve current partid offset
virtual IPhysicalEntity* GetPhysicalEntity() const = 0;
virtual void GetTriggerBounds(AABB & bbox) = 0;
virtual void GetWorldBounds(AABB & bounds) = 0;
Parameters |
Description |
AABB & bounds |
Returns Bounding box in world space. |
Get world bounds of physical object.
virtual void IgnoreXFormEvent(bool ignore) = 0;
Have the physics ignore the XForm event
virtual bool IsPhysicsEnabled() const = 0;
Is physical simulation enabled?
virtual void Physicalize(SEntityPhysicalizeParams & params) = 0;
virtual bool PhysicalizeFoliage(int iSlot) = 0;
physicalizes the foliage of StatObj in slot iSlot
virtual void ReattachSoftEntityVtx(IPhysicalEntity * pAttachToEntity, int nAttachToPart) = 0;
virtual void SerializeTyped(TSerialize ser, int type, int flags) = 0;
virtual void SetTriggerBounds(const AABB & bbox) = 0;