IEntityPhysicalProxy

C++
struct IEntityPhysicalProxy : public IEntityProxy {
};
File

IEntityProxy.h

Description

Physical proxy interface.

IEntityPhysicalProxy::AddImpulse Method
C++
virtual void AddImpulse(int ipart, const Vec3 & pos, const Vec3 & impulse, bool bPos, float fAuxScale, float fPushScale = 1.0f) = 0;
Description

Add impulse to physical entity.

IEntityPhysicalProxy::AssignPhysicalEntity Method
C++
virtual void AssignPhysicalEntity(IPhysicalEntity * pPhysEntity, int nSlot = -1) = 0;
Parameters
Parameters
Description
IPhysicalEntity * pPhysEntity
The pre-created physical entity.
int nSlot = -1
Slot Index to which the new position will be taken from.
Description

Assign a pre-created physical entity to this proxy.

IEntityPhysicalProxy::DephysicalizeFoliage Method
C++
virtual void DephysicalizeFoliage(int iSlot) = 0;
Description

dephysicalizes the foliage in slot iSlot

IEntityPhysicalProxy::EnableNetworkSerialization Method
C++
virtual void EnableNetworkSerialization(bool enable) = 0;
Description

Enable/disable network serialisation of the physics aspect

IEntityPhysicalProxy::EnablePhysics Method
C++
virtual void EnablePhysics(bool bEnable) = 0;
Description

Enable or disable physical simulation.

IEntityPhysicalProxy::GetFoliage Method
C++
virtual struct IFoliage * GetFoliage(int iSlot) = 0;
Description

returns foliage object in slot iSlot

IEntityPhysicalProxy::GetLocalBounds Method
C++
virtual void GetLocalBounds(AABB & bounds) = 0;
Parameters
Parameters
Description
AABB & bounds
Returns Bounding box in local entity space.
Description

Get local space physical bounding box.

IEntityPhysicalProxy::GetPartId0 Method
C++
virtual int GetPartId0() = 0;
Description

retrieve current partid offset

IEntityPhysicalProxy::GetPhysicalEntity Method
C++
virtual IPhysicalEntity* GetPhysicalEntity() const = 0;
IEntityPhysicalProxy::GetTriggerBounds Method
C++
virtual void GetTriggerBounds(AABB & bbox) = 0;
Description

Retrieve trigger bounding box in local space. Return: Axis aligned bounding box of the trigger in the local space.

IEntityPhysicalProxy::GetWorldBounds Method
C++
virtual void GetWorldBounds(AABB & bounds) = 0;
Parameters
Parameters
Description
AABB & bounds
Returns Bounding box in world space.
Description

Get world bounds of physical object.

IEntityPhysicalProxy::IgnoreXFormEvent Method
C++
virtual void IgnoreXFormEvent(bool ignore) = 0;
Description

Have the physics ignore the XForm event

IEntityPhysicalProxy::IsPhysicsEnabled Method
C++
virtual bool IsPhysicsEnabled() const = 0;
Description

Is physical simulation enabled?

IEntityPhysicalProxy::Physicalize Method
C++
virtual void Physicalize(SEntityPhysicalizeParams & params) = 0;
IEntityPhysicalProxy::PhysicalizeFoliage Method
C++
virtual bool PhysicalizeFoliage(int iSlot) = 0;
Description

physicalizes the foliage of StatObj in slot iSlot

IEntityPhysicalProxy::ReattachSoftEntityVtx Method
C++
virtual void ReattachSoftEntityVtx(IPhysicalEntity * pAttachToEntity, int nAttachToPart) = 0;
IEntityPhysicalProxy::SerializeTyped Method
C++
virtual void SerializeTyped(TSerialize ser, int type, int flags) = 0;
IEntityPhysicalProxy::SetTriggerBounds Method
C++
virtual void SetTriggerBounds(const AABB & bbox) = 0;
Parameters
Parameters
Description
const AABB & bbox
Axis aligned bounding box of the trigger in entity local space (Rotation and scale of the entity is ignored). Set empty bounding box to disable trgger.
Description

Creates a trigger bounding box. When physics will detect collision with this bounding box it will send an events to the entity. If entity have script OnEnterArea and OnLeaveArea events will be called.