Class TFB_CollisionPrimitive

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TFB_CollisionPrimitive = class(TObject)

Description

Abstract collision primitive class. Notes for implementing an own primitive:

Hierarchy

Overview

Fields

Protected FMinDimension: TFB_Vectorf3;
Protected FMaxDimension: TFB_Vectorf3;
Protected FMaterial: TFB_Material;
Protected FNormal: TFB_Vectorf3;
Protected FIntersecPoint: TFB_Vectorf3;

Methods

Public function Intersects(APos1, APos2: TFB_Vectorf3): Boolean; virtual; abstract;

Properties

Public property MinDimension: TFB_Vectorf3 read FMinDimension write FMinDimension;
Public property MaxDimension: TFB_Vectorf3 read FMaxDimension write FMaxDimension;
Public property Material: TFB_Material read FMaterial write FMaterial;
Public property Normal: TFB_Vectorf3 read FNormal write FNormal;
Public property IntersectionPoint: TFB_Vectorf3 read FIntersecPoint write FIntersecPoint;

Description

Fields

Protected FMinDimension: TFB_Vectorf3;

Negative boundary point

Protected FMaxDimension: TFB_Vectorf3;

Positive boundary point

Protected FMaterial: TFB_Material;

Primitive material

Protected FNormal: TFB_Vectorf3;

Primitive normal

Protected FIntersecPoint: TFB_Vectorf3;

Absolute point of the last impact

Methods

Public function Intersects(APos1, APos2: TFB_Vectorf3): Boolean; virtual; abstract;

Returns true, if the line intersects the primitive.

Parameters
APos1
Start point of the line.
APos2
End point of the line.

Properties

Public property MinDimension: TFB_Vectorf3 read FMinDimension write FMinDimension;

Absolute smallest coordinates of the primitive (maybe with an offset)

Public property MaxDimension: TFB_Vectorf3 read FMaxDimension write FMaxDimension;

Absolute largest coordinates of the primitive (maybe with an offset)

Public property Material: TFB_Material read FMaterial write FMaterial;

Material of the whole object or the at the place of the last positive collision check

Public property Normal: TFB_Vectorf3 read FNormal write FNormal;

Normal at the point of the last positive collision check

Public property IntersectionPoint: TFB_Vectorf3 read FIntersecPoint write FIntersecPoint;

Point of last intersection


Generated by PasDoc 0.11.0 on 2009-06-29 23:12:35