View Issue Details

IDProjectCategoryView StatusLast Update
0000495Medieval EngineersBugpublic2023-12-07 21:01
Reporterxaerthus Assigned Toequinox  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
PlatformWindows 
Target Version0.7.4 (unreleased)Fixed in Version0.7.4 (unreleased) 
Summary0000495: Interaction with blocks using sphere and capsule collision only on center point/line
Description

When a block uses a sphere or capsule collision it can only be interacted with tools when the player is aiming exactly at the center point of the sphere collision or the center line of the capsule collision. This happens when trying to remove blocks in creative, when trying to aim for the block with a hammer or when trying to use an interaction dummy on such block. This does not happen when trying to F-pick up.

Considering a lot of especially modded blocks use capsule collisions for optimising performance, this is a considerable inconvenience as you spend much more time dealing with blocks, risking removing another behind it on even the smallest slip.

Steps To Reproduce
  1. Place on grid any block with sphere or capsule collisions (for vanilla: small/large projectile)
  2. Try removing this block via right-click or with a hammer
  3. Note red highlight appearing only if aiming exactly as the center of the sphere
TagsNo tags attached.

Relationships

has duplicate 0000262 closedequinox Hit Box on Drum Barrel  

Activities

equinox

2023-09-15 21:37

administrator   #~0000405

this is caused because the convex radius is reset prior to performing block shape-line intersections. Sphere/capsule shapes are modeled as a point/line with a convex radius equal to the shape radius, so by tweaking the convex radius these shapes effectively collapse down to a fixed (small) radius. It's not entirely clear why it is actually necessary to do this, so it should either be removed, or if that breaks thing, removed only for sphere/capsule shapes and convex-translate/transform versions of those.

As a workaround you can set UseModelIntersection on the block definition for the problematic blocks.

Issue History

Date Modified Username Field Change
2023-09-02 10:34 xaerthus New Issue
2023-09-15 21:37 equinox Note Added: 0000405
2023-09-15 21:37 equinox Target Version => 0.7.4.x (unreleased)
2023-10-29 03:40 equinox Relationship added has duplicate 0000262
2023-11-10 11:01 equinox Assigned To => equinox
2023-11-10 11:01 equinox Status new => in progress
2023-11-30 21:39 equinox Target Version 0.7.4.x (unreleased) => 0.7.4 (unreleased)
2023-12-07 21:01 equinox Status in progress => resolved
2023-12-07 21:01 equinox Resolution open => fixed
2023-12-07 21:01 equinox Fixed in Version => 0.7.4 (unreleased)