Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoftBody physics overhaul #2893

Merged
merged 16 commits into from Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions Sources/armory/trait/physics/bullet/PhysicsHook.hx
Expand Up @@ -92,17 +92,15 @@ class PhysicsHook extends Trait {

#if js
var nodes = sb.body.get_m_nodes();
#elseif cpp
#else
var nodes = sb.body.m_nodes;
#end

var geom = cast(object, MeshObject).data.geom;
var numNodes = Std.int(geom.positions.values.length / 4);
for (i in 0...numNodes) {
for (i in 0...nodes.size()) {
var node = nodes.at(i);
#if js
var nodePos = node.get_m_x();
#elseif cpp
#else
var nodePos = node.m_x;
#end

Expand Down