public class AutoTraceRayLocalImpl extends AutoTraceRayLocal
| Modifier and Type | Class and Description |
|---|---|
static class |
AutoTraceRayLocalImpl.AutoTraceRayLocalUpdate |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
FastTrace
True if it is a fast trace, false if not (fast trace is a
bit faster version of UT2004 ray trace - but provides us
with less information - just true/false if we hit something
on the way or not).
|
protected boolean |
FloorCorrection
If we should correct ray directions accoring floor normal.
|
protected Location |
From
Location from which the ray is emitted.
|
protected UnrealId |
HitId
Id of the actor we have hit.
|
protected Location |
HitLocation
Vector with location of the collision (not sent if FastTrace
is True).
|
protected javax.vecmath.Vector3d |
HitNormal
Vector with normal of the plane we have hit (not sent if
FastTrace is True).
|
protected UnrealId |
Id
An Id for this ray (should be unique), assigned by the user
when adding ray.
|
protected boolean |
Result
True if it hit something, false if not.
|
protected Location |
To
Location to which the ray is sent.
|
protected boolean |
TraceActors
If we traced also actors with this ray (actors – moving
things in a game – bots, players, monsters, pickup …) (only
if NOT using FastTrace)
|
SimTime| Constructor and Description |
|---|
AutoTraceRayLocalImpl()
Parameter-less contructor for the message.
|
AutoTraceRayLocalImpl(AutoTraceRay original)
Cloning constructor from the full message.
|
AutoTraceRayLocalImpl(AutoTraceRayLocal original)
Cloning constructor from the message part.
|
AutoTraceRayLocalImpl(AutoTraceRayLocalImpl original)
Cloning constructor from the full message.
|
AutoTraceRayLocalImpl(UnrealId Id,
Location From,
Location To,
boolean FastTrace,
boolean FloorCorrection,
boolean Result,
javax.vecmath.Vector3d HitNormal,
Location HitLocation,
boolean TraceActors,
UnrealId HitId)
Creates new instance of the message AutoTraceRay.
|
| Modifier and Type | Method and Description |
|---|---|
AutoTraceRayLocalImpl |
clone() |
Location |
getFrom()
Location from which the ray is emitted.
|
UnrealId |
getHitId()
Id of the actor we have hit.
|
Location |
getHitLocation()
Vector with location of the collision (not sent if FastTrace
is True).
|
javax.vecmath.Vector3d |
getHitNormal()
Vector with normal of the plane we have hit (not sent if
FastTrace is True).
|
UnrealId |
getId()
An Id for this ray (should be unique), assigned by the user
when adding ray.
|
AutoTraceRayLocalImpl |
getLocal() |
ISharedWorldObject |
getShared() |
IStaticWorldObject |
getStatic() |
Location |
getTo()
Location to which the ray is sent.
|
boolean |
isFastTrace()
True if it is a fast trace, false if not (fast trace is a
bit faster version of UT2004 ray trace - but provides us
with less information - just true/false if we hit something
on the way or not).
|
boolean |
isFloorCorrection()
If we should correct ray directions accoring floor normal.
|
boolean |
isResult()
True if it hit something, false if not.
|
boolean |
isTraceActors()
If we traced also actors with this ray (actors – moving
things in a game – bots, players, monsters, pickup …) (only
if NOT using FastTrace)
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
getCompositeClass, getSimTimetoJsonLiteralprotected UnrealId Id
protected Location From
protected Location To
protected boolean FastTrace
protected boolean FloorCorrection
protected boolean Result
protected javax.vecmath.Vector3d HitNormal
protected Location HitLocation
protected boolean TraceActors
protected UnrealId HitId
public AutoTraceRayLocalImpl()
public AutoTraceRayLocalImpl(UnrealId Id, Location From, Location To, boolean FastTrace, boolean FloorCorrection, boolean Result, javax.vecmath.Vector3d HitNormal, Location HitLocation, boolean TraceActors, UnrealId HitId)
Id - An Id for this ray (should be unique), assigned by the user
when adding ray.From - Location from which the ray is emitted.To - Location to which the ray is sent.FastTrace - True if it is a fast trace, false if not (fast trace is a
bit faster version of UT2004 ray trace - but provides us
with less information - just true/false if we hit something
on the way or not).FloorCorrection - If we should correct ray directions accoring floor normal. Note: Has issue - we can't set set rays up or down when correction is active.Result - True if it hit something, false if not.HitNormal - Vector with normal of the plane we have hit (not sent if
FastTrace is True).HitLocation - Vector with location of the collision (not sent if FastTrace
is True).TraceActors - If we traced also actors with this ray (actors – moving
things in a game – bots, players, monsters, pickup …) (only
if NOT using FastTrace)HitId - Id of the actor we have hit. (Sent if FastTrace is False and
TraceActors is True).public AutoTraceRayLocalImpl(AutoTraceRay original)
original - public AutoTraceRayLocalImpl(AutoTraceRayLocalImpl original)
original - public AutoTraceRayLocalImpl(AutoTraceRayLocal original)
original - public void setSimTime(long SimTime)
AutoTraceRayLocalsetSimTime in class AutoTraceRayLocalpublic AutoTraceRayLocalImpl clone()
clone in interface ILocalWorldObjectclone in class AutoTraceRayLocalpublic UnrealId getId()
getId in interface IWorldObjectgetId in class AutoTraceRayLocalpublic Location getFrom()
getFrom in class AutoTraceRayLocalpublic Location getTo()
getTo in class AutoTraceRayLocalpublic boolean isFastTrace()
isFastTrace in class AutoTraceRayLocalpublic boolean isFloorCorrection()
isFloorCorrection in class AutoTraceRayLocalpublic boolean isResult()
isResult in class AutoTraceRayLocalpublic javax.vecmath.Vector3d getHitNormal()
getHitNormal in class AutoTraceRayLocalpublic Location getHitLocation()
getHitLocation in class AutoTraceRayLocalpublic boolean isTraceActors()
isTraceActors in class AutoTraceRayLocalpublic UnrealId getHitId()
getHitId in class AutoTraceRayLocalpublic AutoTraceRayLocalImpl getLocal()
getLocal in class AutoTraceRayLocalpublic ISharedWorldObject getShared()
getShared in class AutoTraceRayLocalpublic IStaticWorldObject getStatic()
getStatic in class AutoTraceRayLocalpublic String toString()
toString in class AutoTraceRayLocalpublic String toHtmlString()
toHtmlString in class AutoTraceRayLocalCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.