public class SimpleRayCasting extends BotCommands
act, worldViewagent, controller, eventBus, log| Constructor and Description |
|---|
SimpleRayCasting(UDKBot agent,
Logger log)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAutoTraceRay(String id,
javax.vecmath.Vector3d direction,
int length,
boolean bFastTrace,
boolean bFloorCorrection,
boolean bTraceActors)
Adds a new ray to auto ray tracing rays set.
|
void |
addDefaultAutoTraceRays()
This command removes all existing auto trace rays and adds a default auto
trace rays set.
|
void |
changeAutoTraceRay(String id,
javax.vecmath.Vector3d direction,
int length,
boolean bFastTrace,
boolean bFloorCorrection,
boolean bTraceActors)
To change the ray it is sufficient to call addAutoTraceRay function with
proper Id.
|
void |
disableAutoTracing()
Disables auto trace rays.
|
void |
enableAutoTracing()
Enables auto trace rays.
|
void |
fastTrace(String id,
ILocated to)
Sends a ray from actual bot location to desired location.
|
void |
fastTrace(String id,
ILocated from,
ILocated to)
Sends a ray from desired location to desired location.
|
void |
removeAllAutoTraceRays()
Removes all autoTraceRays.
|
void |
removeAutoTraceRay(String id)
Remove one autoTraceRay with desired id from the list.
|
void |
trace(String id,
ILocated to,
boolean bTraceActors)
Sends a ray from actual bot location to desired location.
|
void |
trace(String id,
ILocated from,
ILocated to,
boolean bTraceActors)
Sends a ray from desired location to desired location.
|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toStringpublic void fastTrace(String id, ILocated to)
id - user determined id of the ray (use to match response)to - end location of this raypublic void fastTrace(String id, ILocated from, ILocated to)
id - user determined id of the ray (use to match response)from - start location of this rayto - end location of this raypublic void trace(String id, ILocated to, boolean bTraceActors)
id - user determined id of the ray (use to match response)to - end location of this raypublic void trace(String id, ILocated from, ILocated to, boolean bTraceActors)
id - user determined id of the ray (use to match response)from - start location of this rayto - end location of this raypublic void addAutoTraceRay(String id, javax.vecmath.Vector3d direction, int length, boolean bFastTrace, boolean bFloorCorrection, boolean bTraceActors)
id - String id of this ray, used to change its parameters or delete
itdirection - vector direction of this ray (1,0,0) for straight ahead,
(0,1,0) for 90 degrees right, etc. The vector does not have to
be normalized.length - length of the ray in UT units. One character in UT is
approximately 200 UT units long.bFastTrace - true if we want to use FastTrace function for this ray cast
(faster, but only world geometry can be traced)bFloorCorrection - if true the rays direction will be adjusted according to floor
normal. So if we will climb a hill, the rays will adjust to
the steepnes of the hill.bTraceActors - if true and bFastTrace set to true, also dynamic items in the
map will be traced (other players and items)public void changeAutoTraceRay(String id, javax.vecmath.Vector3d direction, int length, boolean bFastTrace, boolean bFloorCorrection, boolean bTraceActors)
id - String id of this ray, used to change its parameters or delete
itdirection - vector direction of this ray (1,0,0) for straight ahead,
(0,1,0) for 90 degrees right, etc. The vector does not have to
be normalized.length - length of the ray in UT units. One character in UT is
approximately 200 UT units long.bFastTrace - true if we want to use FastTrace function for this ray cast
(faster, but only world geometry can be traced)bFloorCorrection - if true the rays direction will be adjusted according to floor
normal. So if we will climb a hill, the rays will adjust to
the steepnes of the hill.bTraceActors - if true and bFastTrace set to true, also dynamic items in the
map will be traced (other players and items)public void addDefaultAutoTraceRays()
public void removeAutoTraceRay(String id)
id - id of the ray we want to deletepublic void removeAllAutoTraceRays()
public void enableAutoTracing()
public void disableAutoTracing()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.