Skip to content

Commit

Permalink
physics drag fix
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij committed Mar 1, 2024
1 parent 9ec92f3 commit dfe9b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions WickedEngine/wiPhysics_Bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1768,6 +1768,8 @@ namespace wi::physics
PickDragOperation& op
)
{
if (scene.physics_scene == nullptr)
return;
btSoftRigidDynamicsWorld& dynamicsWorld = ((PhysicsScene*)scene.physics_scene.get())->dynamicsWorld;
float tmin = wi::math::Clamp(ray.TMin, 0, 1000000);
float tmax = wi::math::Clamp(ray.TMax, 0, 1000000);
Expand Down
2 changes: 1 addition & 1 deletion WickedEngine/wiVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 71;
// minor bug fixes, alterations, refactors, updates
const int revision = 384;
const int revision = 385;

const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);

Expand Down

0 comments on commit dfe9b9d

Please sign in to comment.