11 target =
new PhysicsElementData { Type = source.Type, LinkedBoneName = source.LinkedBoneName };
12 context.ConvertToData(ref target.Shape, source.Shape);
13 target.CollisionGroup = source.CollisionGroup;
14 target.CanCollideWith = source.CanCollideWith;
15 target.StepHeight = source.StepHeight;
16 target.Sprite = source.Sprite;
22 source =
new PhysicsElement { Type = target.Type, LinkedBoneName = target.LinkedBoneName };
24 var temp = source.Shape;
25 context.ConvertFromData(target.Shape, ref temp);
28 source.CollisionGroup = target.CollisionGroup;
29 source.CanCollideWith = target.CanCollideWith;
30 source.StepHeight = target.StepHeight;
31 source.Sprite = target.Sprite;
override void ConvertFromData(Core.Serialization.Converters.ConverterContext context, PhysicsElementData target, ref PhysicsElement source)
Data type for PhysicsElement.
Converter type for PhysicsElement.
override void ConvertToData(Core.Serialization.Converters.ConverterContext context, ref PhysicsElementData target, PhysicsElement source)
using SiliconStudio.Paradox. Physics