public class CollisionFunction extends Object
Constructor and Description |
---|
CollisionFunction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
computeCollision(int current)
Get the collision value by compute the current value with the collision function.
|
CollisionRefential |
getAxis()
Get the axis.
|
CollisionRefential |
getInput()
Get the input.
|
String |
getName()
Get the name.
|
int |
getOffset()
Get the offset.
|
Range |
getRange()
Get the working range.
|
double |
getValue()
Get the value.
|
void |
setAxis(CollisionRefential axis)
Set the input type used.
|
void |
setInput(CollisionRefential input)
Set the input type used.
|
void |
setName(String name)
Set the name.
|
void |
setOffset(int offset)
Set the offset value.
|
void |
setRange(int min,
int max)
Set the function working range.
|
void |
setValue(double value)
Set the value.
|
public double computeCollision(int current)
current
- The current value to use as input.public void setName(String name)
name
- The name.public void setAxis(CollisionRefential axis)
axis
- The axis to setpublic void setInput(CollisionRefential input)
input
- The input to setpublic void setValue(double value)
value
- The value to setpublic void setOffset(int offset)
offset
- The offset to setpublic void setRange(int min, int max)
min
- The minimum value.max
- The maximum value.public String getName()
public CollisionRefential getAxis()
public CollisionRefential getInput()
public double getValue()
public int getOffset()
public Range getRange()
Copyright © 2014 Byron 3D Games Studio. All rights reserved.