Table of Contents

Class BlockBrokenParticleProps

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class BlockBrokenParticleProps : BlockBreakingParticleProps, IParticlePropertiesProvider
Inheritance
BlockBrokenParticleProps
Implements
Inherited Members

Properties

LifeLength

How long the particle should live (default = 1)

public override float LifeLength { get; }

Property Value

float

Pos

Position in the world where the particle should spawn

public override Vec3d Pos { get; }

Property Value

Vec3d

Quantity

How many particles should spawn? For every particle spawned, all of belows methods are called once. E.g. if quantity is 10, GetPos(), GetVelocity(),... is called 10 times.

public override float Quantity { get; }

Property Value

float

Size

Size of the particle

public override float Size { get; }

Property Value

float

SizeEvolve

Size change over time

public override EvolvingNatFloat SizeEvolve { get; }

Property Value

EvolvingNatFloat

SwimOnLiquid

public override bool SwimOnLiquid { get; }

Property Value

bool

VertexFlags

See also VertexFlags

public override int VertexFlags { get; }

Property Value

int

Methods

GetVelocity(Vec3d)

In what direction should the particle fly/fall

public override Vec3f GetVelocity(Vec3d pos)

Parameters

pos Vec3d

Returns

Vec3f