collapse_all
expand_all
collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++
DPSF API Documentation
DPSFDefaultSprite3DBillboardParticleSystem
<
(Of
<
(<'Particle, Vertex>)>)>..::..SetCameraPosition Method
gradient

Sets the camera position, so that the particles know how far they are from the camera and can be properly sorted.

NOTE: 3D Billboard Sprite particles always face the camera, so this only needs to be Set (updated) every frame if you plan on sorting these particles relative to one another by their distance from the camera, in order to give proper depth perception of the particles (i.e. by adding the Particle EveryTimeEvent UpdateParticleDistanceFromCameraSquared and the Particle System EveryTimeEvent UpdateParticleSystemToSortParticlesByDistanceFromCamera).

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public override void SetCameraPosition(

 Vector3 cameraPosition

)

Visual Basic

Public Overrides Sub SetCameraPosition (

 cameraPosition As Vector3

)

Visual C++

public:

virtual void SetCameraPosition(

 Vector3 cameraPosition

override

Parameters

cameraPosition

Type: Vector3

The camera position.

Implements

IDPSFParticleSystem..::..SetCameraPosition(Vector3)

collapse_allSee Also

DPSFDefaultSprite3DBillboardParticleSystem<(Of <(<'Particle, Vertex>)>)> Class

DPSFDefaultSprite3DBillboardParticleSystem<(Of <(<'Particle, Vertex>)>)> Members

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com