Class TCastleSphereCollider
Unit
Declaration
type TCastleSphereCollider = class(TCastleCollider)
Description
Collide as a sphere. Add this collider to TCastleTransform behaviors, along with a TCastleRigidBody, to make the given TCastleTransform be affected by physics and collide with other physics bodies.
Source: src/transform/castletransform_physics.inc (line 554).
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleBehavior
- TCastleCollider
- TCastleSphereCollider
Overview
Methods
![]() |
function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override; |
![]() |
procedure CalculateSizeCore; override; |
![]() |
procedure UpdateVisualization; override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
![]() |
procedure InternalDesigningBegin; override; |
![]() |
procedure InternalDesigningEnd; override; |
Properties
![]() |
property Radius: Single read FRadius write SetRadius stored StoredWithAutoSize; |
Description
Methods
![]() |
function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override; |
|
This item has no description. Source: src/transform/castletransform_physics.inc (line 562). | |
![]() |
procedure CalculateSizeCore; override; |
|
This item has no description. Showing description inherited from TCastleCollider.CalculateSizeCore. Recalculate collider size. Do not be concerned about AutoSize here, just update collider properties. The default implementation resets Translation and Rotation. Source: src/transform/castletransform_physics.inc (line 564). | |
![]() |
procedure UpdateVisualization; override; |
|
This item has no description. Showing description inherited from TCastleCollider.UpdateVisualization. Called when the collider size has changed and needs to be updated. Source: src/transform/castletransform_physics.inc (line 565). | |
![]() |
constructor Create(AOwner: TComponent); override; |
|
This item has no description. Source: src/transform/castletransform_physics.inc (line 567). | |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
This item has no description. Showing description inherited from TCastleComponent.PropertySections. Section where to show property in the editor. Source: src/transform/castletransform_physics.inc (line 568). | |
![]() |
procedure InternalDesigningBegin; override; |
|
This item has no description. Showing description inherited from TCastleCollider.InternalDesigningBegin. Create collider visualization. Source: src/transform/castletransform_physics.inc (line 569). | |
![]() |
procedure InternalDesigningEnd; override; |
|
This item has no description. Showing description inherited from TCastleCollider.InternalDesigningEnd. Destroy collider visualization. Source: src/transform/castletransform_physics.inc (line 570). | |
Properties
![]() |
property Radius: Single read FRadius write SetRadius stored StoredWithAutoSize; |
|
Sphere radius. Default is 1 (if not AutoSize), consistent with TCastleSphere. Source: src/transform/castletransform_physics.inc (line 574). | |
Generated by PasDoc 0.17.0.snapshot.


