// Find entities where poseVar equals Pose()
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.poseVar).isEqualTo(Pose()) }
// Find entities where poseVar's postition X is greater than 0.5f
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.poseVar).byPositionX().greaterThan(0.5f) }
// Find entities where poseVar's orientation W is between 0.0f and 1.0f
Query.where { has(TestComponent.id)}
.filter { by(TestComponent.poseVar).byOrientationW().greaterThanOrEqualTo(0.0f) and
by(TestComponent.poseVar).byOrientationW().lessThanOrEqualTo(1.0f) }
class ByPoseFilterOperation(val attrId: Int, var propId: Int = 0, val filterBuilder: FilterBuilder)
ByPoseFilterOperation
(
attrId
, propId
, filterBuilder
)
|
Signature
constructor(attrId: Int, propId: Int = 0, filterBuilder: FilterBuilder) Parameters attrId: IntÂ
The attribute id of the filter operation.
propId: IntÂ
The property id of the filter operation (0-2 for position x/y/z, 3-6 for orientation w/x/y/z).
Returns ByPoseFilterOperation |
attrId
: Int
[Get] |
Signature
val attrId: Int |
filterBuilder
: FilterBuilder
[Get] |
Signature
val filterBuilder: FilterBuilder |
propId
: Int
[Get][Set] |
Signature
var propId: Int |
byOrientationW
()
|
Sets the filter to operate on the W component of the Pose's orientation quaternion.
Signature
fun byOrientationW(): ByPoseFilterOperation Returns ByPoseFilterOperationÂ
This filter operation configured to filter on the orientation's W component.
|
byOrientationX
()
|
Sets the filter to operate on the X component of the Pose's orientation quaternion.
Signature
fun byOrientationX(): ByPoseFilterOperation Returns ByPoseFilterOperationÂ
This filter operation configured to filter on the orientation's X component.
|
byOrientationY
()
|
Sets the filter to operate on the Y component of the Pose's orientation quaternion.
Signature
fun byOrientationY(): ByPoseFilterOperation Returns ByPoseFilterOperationÂ
This filter operation configured to filter on the orientation's Y component.
|
byOrientationZ
()
|
Sets the filter to operate on the Z component of the Pose's orientation quaternion.
Signature
fun byOrientationZ(): ByPoseFilterOperation Returns ByPoseFilterOperationÂ
This filter operation configured to filter on the orientation's Z component.
|
byPositionX
()
|
Sets the filter to operate on the X component of the Pose's position.
Signature
fun byPositionX(): ByPoseFilterOperation Returns ByPoseFilterOperationÂ
This filter operation configured to filter on the position's X component.
|
byPositionY
()
|
Sets the filter to operate on the Y component of the Pose's position.
Signature
fun byPositionY(): ByPoseFilterOperation Returns ByPoseFilterOperationÂ
This filter operation configured to filter on the position's Y component.
|
byPositionZ
()
|
Sets the filter to operate on the Z component of the Pose's position.
Signature
fun byPositionZ(): ByPoseFilterOperation Returns ByPoseFilterOperationÂ
This filter operation configured to filter on the position's Z component.
|
greaterThan
(
value
)
|
Creates a filter node representing a greater than condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun greaterThan(value: Float): ByPoseFilterNode Parameters value: FloatÂ
The float value to compare against.
|
greaterThanOrEqualTo
(
value
)
|
Creates a filter node representing a greater than or equal to condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun greaterThanOrEqualTo(value: Float): ByPoseFilterNode Parameters value: FloatÂ
The float value to compare against.
|
isEqualTo
(
value
)
|
Creates a filter node representing an equality condition with the given Pose value. This compares all position (x, y, z) and orientation (w, x, y, z) components of the pose.
Signature
fun isEqualTo(value: Pose): ByPoseFilterNode Parameters |
isEqualTo
(
value
)
|
Creates a filter node representing an equality condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun isEqualTo(value: Float): ByPoseFilterNode Parameters value: FloatÂ
The float value to compare against.
|
lessThan
(
value
)
|
Creates a filter node representing a less than condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun lessThan(value: Float): ByPoseFilterNode Parameters value: FloatÂ
The float value to compare against.
|
lessThanOrEqualTo
(
value
)
|
Creates a filter node representing a less than or equal to condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun lessThanOrEqualTo(value: Float): ByPoseFilterNode Parameters value: FloatÂ
The float value to compare against.
|