Skip to reading
Shaders, Effects & Layered Scenery

45. Fix position and direction after attaching

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView PDF page

An attached effect is positioned from the target point every frame. Dragging its old world position is therefore not the reliable way to correct the final placement. Correct the target point or its Attachment Offset.

Source table from 45. Fix position and direction after attaching, page 49
SymptomFirst correction
The effect is consistently above the handReduce the offset on the appropriate local axis. Start from [0,0,0] if necessary.
The effect rotates oddly as the arm movesInspect the point rotation and bone choice.
A bolt comes out sidewaysCheck its Direction and the target point’s rotation together.
The effect follows the body, not the wristUse a bone-bound point rather than a root-space point merely placed near the hand.
One animation is wrongInspect that clip’s point override.
The target selector names the wrong actorChoose the live scene entity; verify the stored ID.

1. Freeze the actor in an easily understood pose.

2. Start with zero attachment offset.

3. Change one axis a small amount and test. This reveals which way that point’s local axis faces.

4. Check another animation before finishing. A point that works only while idle is not yet a reliable hand socket.

Attachment Offset is relative to the point’s orientation. “Positive Y” there is not necessarily the same visible direction as the room’s up axis after the hand rotates.

Page 49 of 93Permalink
Go to page