====== Object shadow using a child ======
===== Assets =====
{{:examples:objects:cannon.png?direct|}} {{:examples:objects:cannon-shadow.png?direct|}}
===== Code =====
orxObject_CreateFromConfig("CannonObject");
===== Config =====
[CannonObject]
Graphic = CannonGraphic
Smoothing = true
Position = (-80, -80, -0.1)
AngularVelocity = 100
ChildList = CannonShadow
[CannonGraphic]
Texture = cannon.png
Pivot = (18.5, 26, 0)
[CannonShadow]
Graphic = CannonShadowGraphic
Position = (-20, 20, 0)
IgnoreFromParent = position.rotation
[CannonShadowGraphic]
Texture = cannon-shadow.png
Pivot = (24, 33, 0)
Alpha = 0.5
===== Result =====
{{ examples:objects:object-shadow-rotation-ignore.gif?direct |}}