Private Member Functions | |
private void | DayZPhysics () |
private void | ~DayZPhysics () |
Static Private Member Functions | |
static proto bool | RaycastRV (vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT) |
Raycasts world by given parameters. | |
static proto bool | GetHitSurface (Object other, vector begPos, vector endPos, string surface) |
static proto bool | GetHitSurfaceAndLiquid (Object other, vector begPos, vector endPos, string surface, out int liquidType) |
static proto bool | RaycastRVProxy (notnull RaycastRVParams in, out notnull array< ref RaycastRVResult > results, array< Object > excluded=null) |
static proto bool | RayCastBullet (vector begPos, vector endPos, PhxInteractionLayers layerMask, Object ignoreObj, out Object hitObject, out vector hitPosition, out vector hitNormal, out float hitFraction) |
static proto bool | SphereCastBullet (vector begPos, vector endPos, float radius, PhxInteractionLayers layerMask, Object ignoreObj, out Object hitObject, out vector hitPosition, out vector hitNormal, out float hitFraction) |
static proto bool | GeometryOverlapBullet (vector transform[4], dGeom geometry, PhxInteractionLayers layerMask, notnull CollisionOverlapCallback callback) |
static proto bool | EntityOverlapBullet (vector transform[4], IEntity entity, PhxInteractionLayers layerMask, notnull CollisionOverlapCallback callback) |
static proto bool | EntityOverlapSingleBullet (vector transform[4], IEntity entity, IEntity other, PhxInteractionLayers layerMask, notnull CollisionOverlapCallback callback) |
static proto bool | SphereOverlapBullet (vector position, float radius, PhxInteractionLayers layerMask, notnull CollisionOverlapCallback callback) |
static proto bool | CylinderOverlapBullet (vector transform[4], vector extents, PhxInteractionLayers layerMask, notnull CollisionOverlapCallback callback) |
static proto bool | CapsuleOverlapBullet (vector transform[4], float radius, float height, PhxInteractionLayers layerMask, notnull CollisionOverlapCallback callback) |
static proto bool | BoxOverlapBullet (vector transform[4], vector extents, PhxInteractionLayers layerMask, notnull CollisionOverlapCallback callback) |
|
inlineprivate |
|
inlineprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Referenced by EntityAI::GetImpactSurfaceTypeEx().
|
staticprivate |
Raycasts world by given parameters.
begPos | vector Begin position of raycast (e.g. player position) |
endPos | vector End position of raycast (e.g. player direction) |
contactPos | vector out, world position of first contact |
contactDir | vector out, direction of first contact (available only when object is hitted) |
contactComponent | int out, object component index (available only when object is hitted) |
results | set<Object> out, set of objects hitted by raycast. Can be NULL if not needed |
with | Object Ignores the object from collision. Used only when ground_only is false. Can be NULL if not needed |
ignore | Object Ignores the object from collision. Used only when ground_only is false. Can be NULL if not needed |
sorted | bool Default value is false, used only if ground_only = false |
ground_only | \bool raycasts only ground (ignores all objects). Default value is false if not needed. |
iType | int , type of intersection, possible values ObjIntersectFire(0), ObjIntersectView(1), ObjIntersectGeom(2), ObjIntersectIFire(3), ObjIntersectNone(4) |
radius | float Radius of the ray, default value set to 0 |
bool
return true if raycast hits ground or object Referenced by PoweredOptic_Base::DoMeasurement(), ItemBase::DoMeasurement(), WeaponDebug::DrawLineOfFire(), WeaponDebug::DrawLineOfFireCameraHybrid(), WeaponDebug::DrawLineOfFireMuzzleToHit(), Event_OnClick(), PluginBase::Event_OnClick(), PluginBase::Event_OnClickMiddle(), PluginBase::Event_OnDoubleClick(), PluginBase::Event_OnDrag(), FloatingCrossHair(), ManBase::GetAimPosition(), UIScriptedMenu::GetCameraLookDir(), GetCeilingHeight(), UIScriptedMenu::GetMouseLookDir(), PluginBase::GetMousePositionInScene(), GetProjectedCursorPos3d(), Hologram::GetProjectionEntityPosition(), AreaDamageBase::GetRaycastedHitZone(), HitZoneSelection(), HitZoneSelectionRaycast(), Hologram::IsBaseViable(), Hologram::IsInTerrain(), IsObjectObstructedFilterEx(), IsUnderRoofEx(), UIScriptedMenu::OnClick(), ScriptConsoleItemsTab::OnClick(), ScriptConsoleItemsTab::OnDoubleClick(), Hologram::SetOnGround(), and DeveloperTeleport::TeleportAtCursor().
|
staticprivate |
Referenced by GetRandomizedPositionVerified(), AreaDamageComponentRaycasted::GetRaycastedHitZone(), IsObjectObstructedFilterEx(), IsObjectObstructedProxy(), Weapon::LiftWeaponCheck(), Grenade_Base::OnExplosionEffects(), TrapBase::OnSteppedOn(), Hud::RefreshPlayerTags(), VicinityItemManager::RefreshVicinityItems(), and Hologram::SetOnGround().
|
staticprivate |
Referenced by DeveloperTeleport::TeleportAtCursorEx().
|
staticprivate |