粒子会话
14 个节点
本页内容 14
推进
函数把粒子推进一段模拟时间(秒),每步不超过六十分之一秒。
签名
推进(Particle Session: Particle Session, seconds: 数字)
void Advance(ParticleSession Particle Session, double seconds)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| seconds | 数字 | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
迸发
函数让一个发射器在下一步里一次放出若干粒子。
签名
迸发(Particle Session: Particle Session, 名称: 文本, 数量: 整数)
void Burst(
ParticleSession Particle Session,
string name,
int count)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| 名称 | 文本 | — | The emitter's name. |
| 数量 | 整数 | — | How many particles. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
数量
函数此刻有多少个活着的粒子。
签名
数量(Particle Session: Particle Session) -> 整数
int Count(ParticleSession Particle Session)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
结束会话
函数结束会话,把它在显卡上的内存还回去。
签名
结束会话(Particle Session: Particle Session)
void Dispose(ParticleSession Particle Session)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
帧
函数How many frames Step Frame has stepped.
签名
帧(Particle Session: Particle Session) -> 整数
int Frame(ParticleSession Particle Session)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
场景
函数The scene the session started from (what was moved since is not in it).
签名
场景(Particle Session: Particle Session) -> Particle Scene Description
ParticleSceneDescription Scene(ParticleSession Particle Session)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — |
返回
| 结果 | Particle Scene Description |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
时间
函数Simulated time (s).
签名
时间(Particle Session: Particle Session) -> 数字
double Time(ParticleSession Particle Session)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
移动发射器
函数把一个发射器搬到新的地方(米);从此它的粒子在那里生出。
签名
移动发射器
Particle Session: Particle Session
名称: 文本
位置: Vector3dvoid MoveEmitter(
ParticleSession Particle Session,
string name,
Vector3d position)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| 名称 | 文本 | — | The emitter's name. |
| 位置 | Vector3d | — | Its new centre (m). |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
移动固体
函数把一个固体搬到新的地方(米)。它在下一步里到达,沿途把挡路的粒子扫走。
签名
移动固体
Particle Session: Particle Session
名称: 文本
位置: Vector3dvoid MoveSolid(
ParticleSession Particle Session,
string name,
Vector3d position)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| 名称 | 文本 | — | The solid's name. |
| 位置 | Vector3d | — | Its new centre (m). |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
点
函数活着的粒子此刻的位置(米)。
签名
点(Particle Session: Particle Session) -> Vector3d 数组
Vector3d[] Points(ParticleSession Particle Session)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — |
返回
| 结果 | Vector3d 数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
渲染
函数场景此刻的一张图片:地面、固体和粒子。
签名
渲染 -> Pixel Image
Particle Session: Particle Session
眼睛: Vector3d
目标: Vector3d
宽度: 整数
高度: 整数
视场角: 数字PixelImage Render(
ParticleSession Particle Session,
Vector3d eye,
Vector3d target,
int width = 640,
int height = 480,
double fieldOfView = 40)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| 眼睛 | Vector3d | — | Where the camera stands (m). |
| 目标 | Vector3d | — | What it looks at (m). |
| 宽度 | 整数 | 640 | The picture's width in pixels. |
| 高度 | 整数 | 480 | The picture's height in pixels. |
| 视场角 | 数字 | 40 | The camera's vertical field of view in degrees. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
设置风
函数改变风(米/秒)。
签名
设置风(Particle Session: Particle Session, wind: Vector3d)
void SetWind(ParticleSession Particle Session, Vector3d wind)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| wind | Vector3d | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
步进一帧
函数按某个帧率把粒子推进一帧。
签名
步进一帧
Particle Session: Particle Session
framesPerSecond: 数字void StepFrame(
ParticleSession Particle Session,
double framesPerSecond = 30)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Particle Session | Particle Session | — | |
| framesPerSecond | 数字 | 30 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟
开始粒子会话
函数从一个粒子场景开始一个会话。
签名
开始粒子会话(场景: Particle Scene Description) -> Particle Session
ParticleSession Start(ParticleSceneDescription scene)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 场景 | Particle Scene Description | — | The scene. |
返回
| 结果 | Particle Session |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 粒子会话
- 所属包
- 物理模拟