Polycode
Polycode::SceneEntity Class Reference

3D base entity. More...

Inherits Polycode::Entity, and Polycode::EventDispatcher.

Inherited by Polycode::Bone, Polycode::Camera, Polycode::SceneLight, Polycode::SceneLine, Polycode::SceneMesh, Polycode::SceneParticleEmitter, Polycode::SceneSound, Polycode::SceneSoundListener, and Polycode::Skeleton.

List of all members.

Public Member Functions

virtual bool testMouseCollision (Number x, Number y)
 Test mouse collision on the scene entity at a specified screen point.

Public Attributes

bool castShadows
 If set to true, will cast shadows (Defaults to true).

Detailed Description

3D base entity.

SceneEntities are the base class for all 3D entities in Polycode. A thin wrapper around Entity, it inherits most of its functionality.

See also:
Entity

Member Function Documentation

virtual bool Polycode::SceneEntity::testMouseCollision ( Number  x,
Number  y 
) [inline, virtual]

Test mouse collision on the scene entity at a specified screen point.

Each SceneEntity subclass must implement this if it wants to support this feature.

Parameters:
xX position on screen.
yY position on screen.
Returns:
True if the entity is at the specified screen coordinate.