| 912 | } |
| 913 | |
| 914 | void AttachedOnVehicle::UpdatePosition() |
| 915 | { |
| 916 | if (_vehicle != nullptr) |
| 917 | { |
| 918 | float scale = Scale(); |
| 919 | Matrix4 toWorld = _vehicle->WorldTransform(); |
| 920 | SetPosition(toWorld.FastTransform(_pos)); |
| 921 | SetOrient(toWorld.Rotate(_dir), toWorld.DirectionUp()); |
| 922 | SetScale(scale); |
| 923 | } |
| 924 | } |
| 925 | |
| 926 | LSError AttachedOnVehicle::Serialize(ParamArchive& ar) |
| 927 | { |
no test coverage detected