Skip to content

Commit 1bba5fa

Browse files
committed
disable scene collision (needs proper impl.)
1 parent 802a09b commit 1bba5fa

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/physx/articulation_link_component.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,6 @@ void PhysxArticulationLinkComponent::onAddToScene(Scene &scene) {
341341

342342
for (auto &shape : mCollisionShapes) {
343343
shape->getPxShape()->setContactOffset(system->getSceneConfig().contactOffset);
344-
345-
auto col = shape->getCollisionGroups();
346-
col[3] = (system->getSceneCollisionId() << 16) + col[3] & 0xffff;
347-
shape->setCollisionGroups(col);
348344
}
349345

350346
system->registerComponent(

src/physx/rigid_component.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@ void PhysxRigidStaticComponent::onAddToScene(Scene &scene) {
204204
// setup physical parameters
205205
for (auto &shape : mCollisionShapes) {
206206
shape->getPxShape()->setContactOffset(system->getSceneConfig().contactOffset);
207-
208-
auto col = shape->getCollisionGroups();
209-
col[3] = (system->getSceneCollisionId() << 16) + col[3] & 0xffff;
210-
shape->setCollisionGroups(col);
211207
}
212208

213209
#ifdef SAPIEN_CUDA
@@ -239,10 +235,6 @@ void PhysxRigidDynamicComponent::onAddToScene(Scene &scene) {
239235
mPxActor->setSleepThreshold(system->getSceneConfig().sleepThreshold);
240236
for (auto &shape : mCollisionShapes) {
241237
shape->getPxShape()->setContactOffset(system->getSceneConfig().contactOffset);
242-
243-
auto col = shape->getCollisionGroups();
244-
col[3] = (system->getSceneCollisionId() << 16) + col[3] & 0xffff;
245-
shape->setCollisionGroups(col);
246238
}
247239

248240
system->registerComponent(

0 commit comments

Comments
 (0)