summaryrefslogtreecommitdiff
path: root/scene/3d/soft_body.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/soft_body.h')
-rw-r--r--scene/3d/soft_body.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/3d/soft_body.h b/scene/3d/soft_body.h
index f44f337698..6cf19ef8c4 100644
--- a/scene/3d/soft_body.h
+++ b/scene/3d/soft_body.h
@@ -72,9 +72,7 @@ public:
int point_index;
NodePath spatial_attachment_path;
Spatial *spatial_attachment; // Cache
- /// This is the offset from the soft body to point or attachment to point
- /// Depend if the spatial_attachment_node is NULL or not
- Transform vertex_offset_transform; // Cache
+ Vector3 offset;
PinnedPoint();
PinnedPoint(const PinnedPoint &obj_tocopy);
@@ -186,6 +184,7 @@ public:
private:
void reset_softbody_pin();
+ void _make_cache_dirty();
void _update_cache_pin_points_datas();
void _pin_point_on_physics_server(int p_point_index, bool pin);
void _add_pinned_point(int p_point_index, const NodePath &p_spatial_attachment_path);