World-space interactor used for character legs / props. 更多...
#include <ShallowWaterField.h>
Public 属性 | |
| unsigned | label = 0 |
Application label; must be unique within one setColliders call. | |
| ShallowWaterColliderShape | shape = ShallowWaterColliderShape::Sphere |
| Analytic primitive. | |
| glm::vec3 | center {0.f, 1.f, 0.f} |
| World center; capsule Y axis is vertical. | |
| glm::vec3 | halfExtent {0.25f} |
Box half extents; capsule uses halfExtent.y as half height. | |
| float | radius = 0.25f |
| Sphere or capsule radius. | |
| glm::vec3 | velocity {0.f} |
| World velocity sampled at the collider center. | |
| float | displacementScale = 1.f |
| Scales displaced water volume. | |
| float | dragScale = 1.f |
| Scales horizontal momentum transfer from collider velocity. | |
详细描述
World-space interactor used for character legs / props.
Capsules are vertical by default: halfExtent.y is half the cylinder height and radius is the shaft radius (matching VolumeFluidCollider capsule semantics). Callers update moving samples each frame before step.
在文件 ShallowWaterField.h 第 38 行定义.
类成员变量说明
◆ center
World center; capsule Y axis is vertical.
在文件 ShallowWaterField.h 第 44 行定义.
◆ displacementScale
Scales displaced water volume.
在文件 ShallowWaterField.h 第 52 行定义.
◆ dragScale
Scales horizontal momentum transfer from collider velocity.
在文件 ShallowWaterField.h 第 54 行定义.
◆ halfExtent
| glm::vec3 eve::fluids::ShallowWaterCollider::halfExtent {0.25f} |
Box half extents; capsule uses halfExtent.y as half height.
在文件 ShallowWaterField.h 第 46 行定义.
◆ label
| unsigned eve::fluids::ShallowWaterCollider::label = 0 |
Application label; must be unique within one setColliders call.
在文件 ShallowWaterField.h 第 40 行定义.
◆ radius
Sphere or capsule radius.
在文件 ShallowWaterField.h 第 48 行定义.
◆ shape
| ShallowWaterColliderShape eve::fluids::ShallowWaterCollider::shape = ShallowWaterColliderShape::Sphere |
Analytic primitive.
在文件 ShallowWaterField.h 第 42 行定义.
◆ velocity
| glm::vec3 eve::fluids::ShallowWaterCollider::velocity {0.f} |
World velocity sampled at the collider center.
在文件 ShallowWaterField.h 第 50 行定义.
该结构体的文档由以下文件生成:
- src/modules/fluids/ShallowWaterField.h