Method IsAgainstWall
IsAgainstWall(Object, int)
Returns true
if the object is located against the given
wall.
Declaration
public bool IsAgainstWall(Scene.Object wall, int maxDistance)
Parameters
Type | Name | Description |
---|---|---|
Scene.Object | wall | The wall to check. |
int | maxDistance | Maximum distance in scene units between the object and the wall that is still considered as "against". |
Returns
Type | Description |
---|---|
bool |
|
Remarks
To be declared as "against the wall", the object should
have the same orientation as the orientation of the wall and the
object's reference point (its 0 point) should not be at a
distance of the wall (in scene measurement units) less than or
equal to maxDistance
.