Skip to content

YaQueryParameter

Beta
YaQueryParameter manages parameters for physics queries.

Functions

YaQueryParameter YaQueryParameter.Instance()Beta
Creates the object to query parameters for.
YaQueryParameter QueryPhysicsLayer(number layer)Beta
Returns the physics layer to query.
YaQueryParameter QueryAllPhysicsLayer()Beta
Queries all layers in the scene.
YaQueryParameter IgnorePhysicsLayer(number layer)Beta
Ignores a specified physics layer. Call QueryAllPhysicsLayer to find all physics layers.
YaQueryParameter QueryTrigger(boolean enable)Beta
Enables the query of trigger boxes.
YaQueryParameter QueryInteractiveObject(boolean enable)Beta
Enables the query of interactive objects.
YaQueryParameter QueryDisableCollide(boolean enable)Beta
Enables the query of DisableCollide entity.
YaQueryParameter GeometrySphere(number radius)Beta
Defines the sphere space in which parameters are queried. This API only works for PhysicsAPI.Overlap.
YaQueryParameter GeometryBox(float3 size)Beta
Defines the box space in which parameters are queried. This API only works for PhysicsAPI.Overlap.
  • size box size
YaQueryParameter GeometryCapsule(number radius, number height)Beta
Defines the capsule space in which parameters are queried. This function only works for PhysicsAPI.Overlap.
YaQueryParameter GeometrySector180(number radius, number height)Beta
Queries in a half cylinder area.
YaQueryParameter GeometryDirection(float3 direction)Beta
Queries the direction of the geometric shape, except for GeometryCapsule and GeometrySphere. This function only works for PhysicsAPI.Overlap.
YaQueryParameter GeometryRotation(float3 euler)Beta
Queries the rotation of the geometric shape. This function only works for PhysicsAPI.Overlap.
YaQueryParameter GeometryOffset(float3 offset)Beta
Queries the offset of the geometric shape. This function only works for PhysicsAPI.Overlap.
YaQueryParameter IgnoreGroup(number groupId)Beta
Adds a group to ignore in the query. If you call this function multiple times, only the group in the last call is ignored.
YaQueryParameter IgnoreFriendlyTeam(number teamDamageMask)Beta
Adds a team to ignore in the query.
YaQueryParameter IgnoreDead(boolean enable)Beta
Ignores the dead.
YaQueryParameter Nearest(boolean enable)Beta
Queries the nearest object.