Class TCollisionDetails

Unit

Declaration

type TCollisionDetails = class(specialize TGenericStructList<TCollisionDetailsItem>)

Description

Represents a collision with a 3D objects tree. Just access the First item for the collision information with the final 3D object. The rest of items are containers of this 3D object (a path within TCastleSceneManager.Items hierarchy tree, usually).

This list is a path in the 3D objects tree leading from the final colliding 3D object to the root of the tree.

For example, your 3D tree may be a list (like T3DList), and within this list is a transformed list (T3DTransform), and within is your final colliding object (like TCastleScene). We will contain in this case these three items, in reverse order (TCastleScene, T3DTransform, T3DList). This allows you to track the containers that contain given collision.

This is never an empty list when returned by XxxCollision method.

Hierarchy

Overview

Methods

Public function IndexOfItem(const Item: T3D): Integer;
Public procedure Add(const Item: T3D);

Description

Methods

Public function IndexOfItem(const Item: T3D): Integer;

Index of node with given Item.

Public procedure Add(const Item: T3D);
 

Generated by PasDoc 0.14.0.