| 1479 | } |
| 1480 | |
| 1481 | static Vector3 NonZeroVector3(Vector3 v, float sq_length, Vector3 fallback) |
| 1482 | { |
| 1483 | Vector3 result; |
| 1484 | float neg_sq_length = -sq_length; |
| 1485 | result.setX(dmMath::Select(neg_sq_length, fallback.getX(), v.getX())); |
| 1486 | result.setY(dmMath::Select(neg_sq_length, fallback.getY(), v.getY())); |
| 1487 | result.setZ(dmMath::Select(neg_sq_length, fallback.getZ(), v.getZ())); |
| 1488 | return result; |
| 1489 | } |
| 1490 | |
| 1491 | void ApplyRadial(dmArray<Particle>& particles, Property* modifier_properties, const Point3& position, float scale, float emitter_t, float dt) |
| 1492 | { |