Language:
Page Info
Tags:
Engine Version:

Mesh Type Data

Choose your OS:
On this page:

LootBucket.png

The Mesh type data module indicates that the emitter should use StaticMesh instances rather than sprite particles. This is great for effects such as shrapnel or debris.

The Mesh type data module has the following properties:

Property

Description

Mesh

Mesh

The StaticMesh that is rendered at the position of the emitter's particles.

Mesh Alignment

The alignment to use when rendering the mesh. The Required Module's Screen Alignment property MUST be set to PSA_TypeSpecific for this property to have any effect. The following options are provided:

Option

Description

PSMA_MeshFaceCameraWithRoll

Face the camera allowing for rotation around the mesh-to-camera vector (amount provided by the standard particle sprite rotation).

PSMA_MeshFaceCameraWithSpin

Face the camera allowing for the mesh to rotate about the tangential axis.

PSMA_MeshFaceCameraWithLockedAxis

Face the camera while maintaining the up vector as the locked direction.

Override Material

If true, the meshes will be rendered using the material from the emitter (assigned in the RequiredModule) rather than those applied to the Static Mesh model. Use this over the MeshMaterial module unless you have multiple UV channels on your mesh you need to assign material to, or you need to parameterize the material assignment for code.

Orientation

Pitch

The 'pre' rotation pitch (in degrees) to apply to the Static Mesh used.

Roll

The 'pre' rotation roll (in degrees) to apply to the Static Mesh used.

Yaw

The 'pre' rotation yaw (in degrees) to apply to the Static Mesh used.

Axis Lock Option

The axis to lock the mesh on. This overrides TypeSpecific mesh alignment as well as the LockAxis module. The following options are provided:

Option

Description

EPAL_NONE

No locking to an axis.

EPAL_X

Lock the mesh X-axis facing towards +X.

EPAL_Y

Lock the mesh X-axis facing towards +Y.

EPAL_Z

Lock the mesh X-axis facing towards +Z.

EPAL_NEGATIVE_X

Lock the mesh X-axis facing towards -X.

EPAL_NEGATIVE_Y

Lock the mesh X-axis facing towards -Y.

EPAL_NEGATIVE_Z

Lock the mesh X-axis facing towards -Z.

EPAL_ROTATE_X

Ignored for mesh emitters. Treated as EPAL_NONE.

EPAL_ROTATE_Y

Ignored for mesh emitters. Treated as EPAL_NONE.

EPAL_ROTATE_Z

Ignored for mesh emitters. Treated as EPAL_NONE.

CameraFacing

Camera Facing

If true, then the X-axis of the mesh will always point towards the camera. When set, Axis Lock Option as well as all other locked axis/screen alignment settings are ignored.

Camera Facing Option

Determines how the mesh is oriented when the Camera Facing option is enabled. The following options are provided:

Option

Description

XAxisFacing_NoUp

The mesh's local X-axis faces the camera, while no attempt is made to face the other axes up or down.

XAxisFacing_ZUp

The mesh's local X-axis faces the camera, while the mesh's local Z-axis will attempt to face up (towards the world positive Z-axis).

XAxisFacing_NegativeZUp

The mesh's local X-axis faces the camera, while the mesh's local Z-axis will attempt to face down (towards the world negative Z-axis).

XAxisFacing_YUp

The mesh's local X-axis faces the camera, while the mesh's local Y-axis will attempt to face up (towards the world positive Z-axis).

XAxisFacing_NegativeYUp

The mesh's local X-axis faces the camera, while the mesh's local Y-axis will attempt to face down (towards the world negative Z-axis).

LockedAxis_ZAxisFacing

The mesh's local X-axis is locked on the Axis Lock Option axis, while the mesh's local Z-axis is rotated to face towards camera.

LockedAxis_NegativeZAxisFacing

The mesh's local X-axis is locked on the Axis Lock Option axis, while the mesh's local Z-axis is rotated to face away from camera.

LockedAxis_YAxisFacing

The mesh's local X-axis is locked on the Axis Lock Option axis, while the mesh's local Y-axis is rotated to face towards camera.

LockedAxis_NegativeYAxisFacing

The mesh's local X-axis is locked on the Axis Lock Option axis, while the mesh's local Y-axis is rotated to face away from camera.

VelocityAligned_ZAxisFacing

The mesh's local X-axis aligned to the velocity, while the mesh's local Z-axis is rotated to face towards camera.

VelocityAligned_NegativeZAxisFacing

The mesh's local X-axis aligned to the velocity, while the mesh's local Z-axis is rotated to face away from camera.

VelocityAligned_YAxisFacing

The mesh's local X-axis aligned to the velocity, while the mesh's local Y-axis is rotated to face towards camera.

VelocityAligned_NegativeYAxisFacing

The mesh's local X-axis aligned to the velocity, while the mesh's local Y-axis is rotated to face away from camera.

All axis-locked camera facing options assume the AxisLockOption is set. EPAL_NONE will be treated as EPAL_X.

All velocity-aligned options do NOT require the ScreenAlignment be set to PSA_Velocity. Doing so will result in additional work being performed (it will orient the mesh twice).

Apply Particle Rotation As Spin

If true, the 'sprite' particle rotation is applied to the mesh about the orientation axis (the direction mesh is pointing). Otherwise, the 'sprite' particle rotation is applied to the mesh about the camera facing axis.

Face Camera Direction Rather Than Position

If true, all camera facing options will point the mesh against the camera's view direction rather than pointing at the camera's location.

Tags