public class ILineAgentGeo extends IDynamicsBase
| Modifier and Type | Field and Description |
|---|---|
ICurve |
line |
IVec |
pos
end point of line
|
IVec |
root
start point of line
|
parent, targets| Constructor and Description |
|---|
ILineAgentGeo() |
ILineAgentGeo(IVec rootPos) |
ILineAgentGeo(IVec rootPos,
IVec lineDir) |
| Modifier and Type | Method and Description |
|---|---|
IVec |
dif()
alias of dir()
|
IVec |
dir()
direction from root to pos
|
ICurve |
drawLine() |
IVec |
end()
alias of pos()
|
void |
hide() |
ICurve |
line() |
IVec |
pos()
current position, i.e.
|
IVec |
prevPos()
alias of root()
|
IVec |
pt1()
alias of root()
|
IVec |
pt2()
alias of pos()
|
IVec |
root()
previous position, i.e.
|
void |
show() |
IVec |
start()
alias of root()
|
void |
update()
behavior definition of updating dynamics in each time frame
|
initDynamicsBase, initDynamicsBase, initDynamicsBase, interact, localDynamics, parent, parent, postinteract, postupdate, preinteract, preupdate, removeTarget, removeTarget, target, target, targetNum, targets, updateTargetpublic IVec pos
public IVec root
public ICurve line
public ILineAgentGeo(IVec rootPos)
public ILineAgentGeo()
public IVec pos()
public IVec end()
public IVec pt2()
public IVec root()
public IVec start()
public IVec prevPos()
public IVec pt1()
public IVec dir()
public IVec dif()
public ICurve drawLine()
public ICurve line()
public void hide()
public void show()
public void update()
IDynamicsBaseupdate in interface IDynamicsupdate in class IDynamicsBase