Page MenuHome

Allow User to Specify that object.ray_cast() be Calculated in World Space
Closed, ArchivedPublicPATCH

Description

Currently object.ray_cast() is always calculated in object space. This means that if the object has any translation/rotation/scale the user must manually transform their ray start/end to object space. This patch adds the ability for the user to specify that the coordinates which they parse are in world space. The user can specify this by object.ray_cast(raystart, rayend, world_space=True). The default for world_space is False so that any scripts which do not specify it maintain their current functionality.

Event Timeline

assigning to Campbell our py API maintainer

Dalai Felinto (dfelinto) closed this task as Archived.Dec 23 2019, 6:50 PM
Dalai Felinto (dfelinto) claimed this task.

Hi, thanks for your patch.

We are undergoing a Tracker Curfew where we are automatically closing old patches.

If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.