Fixed:
- odd PITCHFROMMOMENTUM flag behavior: when actor was moving backwards, its pitch calculated incorrectly;
- another PITCHFROMMOMENTUM issue: when actor's velocity was 0, actor model disappeared.
- Offset property:
Sets actor x/y/z offsets.
Code: Select all
offset <xoffset> <yoffset> <zoffset>
- AngleOffset property:
Changes model yaw angle. <angle> --- floating point value in degrees.
Code: Select all
angleoffset <angle>
- PitchOffset property:
Changes model pitch angle. <pitch> --- floating point value in degrees.
Code: Select all
pitchoffset <pitch>
- RollOffset property:
Changes model roll angle. <roll> --- floating point value in degrees.
Code: Select all
rolloffset <roll>
Added new flags:
- INHERITACTORPITCH --- model's pitch adjusts to match actor's pitch. So you can control model pitch via ACS/Decorate scripts.
- INHERITACTORROLL --- the same for roll, but due to the absence proper ACS/Decorate functions (e. g. SetActorRoll), this is useless for now. This is groundwork for future.
- If both flags INHERITACTORPITCH and PITCHFROMMOMENTUM are set, model pitch summarize actror's pitch and momentum vector's pitch (and of course pitchoffset).
- The sequence of transformations applied to the model is:
1) Rotating model using angleoffset, pitchoffset, rolloffset parameters;
2) Scaling model;
3) Applying offset to the model. - If the ROTATING flag is set, model rotation takes place AFTER listed transrormations;
- All actor properties like actor angle and actor pitch (if the INHERITACTORPITCH flag is set) applies at the end of all thansformations.
- If the PITCHFROMMOMENTUM flag is set, momentum vector's pitch applies at the same moment when actor pitch is applied.