AW EVENT OBJECT BUMP

From ActiveWiki
Jump to navigation Jump to search


Minimum requirements
Added in version 4.1
SDKbuild 53


AW_EVENT_OBJECT_BUMP

Description

Avatar has collided with an an object.

Notes

This event is triggered whenever a user collides with an object that has a "bump" trigger (by left-clicking on the object with the mouse.) It may also be triggered if another SDK application calls aw_object_bump.

The avatars for which this event is triggered are governed by neighbor restrictions.

In order to receive this event, the application must first announce its position by calling aw_state_change at least once, or enter a world in global mode.

Attributes

AW_AVATAR_SESSION
AW_AVATAR_NAME
AW_OBJECT_TYPE
AW_OBJECT_SYNC
AW_OBJECT_X
AW_OBJECT_Y
AW_OBJECT_Z
AW_OBJECT_YAW
AW_OBJECT_TILT
AW_OBJECT_ROLL
AW_OBJECT_BUILD_TIMESTAMP
AW_OBJECT_OWNER
AW_OBJECT_MODEL
AW_OBJECT_DESCRIPTION
AW_OBJECT_ACTION
AW_OBJECT_DATA

Usage

void handle_object_bump ()
{
  printf ("Avatar %s bumped into object id=%u model=%s\n", 
          aw_string (AW_AVATAR_NAME),
          aw_int (AW_OBJECT_ID),
          aw_string (AW_OBJECT_MODEL));
}

aw_event_set (AW_EVENT_OBJECT_BUMP, handle_object_bump);

See also