Skip to content

Releases: akasaki1211/maya_expressionCollision

2.1.2

14 Jan 15:24
Compare
Choose a tag to compare

Change Log

Fix

  • Optimized collision detection for sphere, capsule, and capsule2.

2.1.1

06 Jan 14:14
Compare
Choose a tag to compare

Change Log

Fix

  • Avoid errors when using colDetectionNode 1.2.0 or later.
    ("distance" attribute is obsolete in colDetectionMtxNode 1.2.0 and later.)

Note
If 'customnode' mode is not used, there is no difference from 2.1.0.

2.1.0

02 Jan 15:42
Compare
Choose a tag to compare

Change Log

Feature

  • Add 'customnode' mode.

'customnode' mode

If colDetectionNode is already installed, it can select the "customnode" mode for faster performance.
It can be changed by simply adding the following code before detection.create.

detection.CreateConfig.set_type("customnode")

In 'customnode' mode, parent is required and groundCol and scalable are ignored.

from expcol import detection

# Use colDetectionMtxNode
detection.CreateConfig.set_type("customnode")

detection.create(
    'input', 
    'output', 
    'controller', 
    'parent',           # required
    colliders=collider_list, 
    groundCol=True,     # ignored
    scalable=False,     # ignored
    radius_rate=None,
)

2.0.0

24 Nov 14:32
Compare
Choose a tag to compare

Change Log

Feature

  • Add returns to detection.create.
  • Change parent argument to optional.
  • Package names unified to lower case. (expCol -> expcol)
  • Supports pip installation.

BREAKING CHANGE

  • The order of arguments in detection.create has changed.
  • expCol will no longer be able to import.
old/new comparison

create collider :

# old (<2.0.0)
from expCol import collider
collider.sphere()

# new (>2.0.0)
from expcol import collider
collider.sphere()

create detection :

# old (<2.0.0)
from expCol import detection
detection.create(
    'parent', 
    'input', 
    'output', 
    'controller', 
    colliders=collider_list, 
    groundCol=True, 
    scalable=False,
    radius_rate=None,
)

# new (>2.0.0)
from expcol import detection
detection.create(
    'input', 
    'output', 
    'controller', 
    parent='parent', 
    colliders=collider_list, 
    groundCol=True, 
    scalable=False,
    radius_rate=None,
)