Skip to content

Commit

Permalink
Fixed IsCollisionEnabled having no affect.
Browse files Browse the repository at this point in the history
[#] Fixed CheckCollision checking collisions even if collisions are disabled(IsCollisionEnabled = false)

Related issue:
fixes misyltoad#164
  • Loading branch information
RaphaelIT7 committed Oct 1, 2023
1 parent 50cef39 commit 3cd5069
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vphysics_jolt/vjolt_controller_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ bool JoltPhysicsPlayerController::WasFrozen()

static void CheckCollision( JoltPhysicsObject *pObject, JPH::CollideShapeCollector &ioCollector, JPH::BodyFilter &ioFilter )
{
if (!pObject->IsCollisionEnabled()) { return; } // If we have no collisions, we have nothing to check.

JPH::PhysicsSystem *pSystem = pObject->GetEnvironment()->GetPhysicsSystem();

// TODO(Josh): Make a PLAYER ONLY layer that will only collide with MOVING ONLY annd
Expand Down

0 comments on commit 3cd5069

Please sign in to comment.