ARMousePickEntity

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article

This is an Avatar Reality Utilities function.

Function

ARMousePickEntity()
check if the mouse position is over an entity
return value - the entity, if any

Code

This function calls ARMousePick with arguments appropriate for detecting intersections with entities. Returns first entity in the results table, if any.

function ARMousePickEntity()
   local count = ARMousePick(ent_independent+ent_static+ent_rigid,rwi_stop_at_pierceable+rwi_colltype_any,1);
   if (count>0) then
      return g_HitTable[1].entity;
   end
end

Examples

Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools