Skip to main content
InaCentaur
Inspiring
May 7, 2025
Solved

Unable to manipulate static entity (setinteraction)

Took a while to find that this can be fixed from changing Motion to Animated from None

(LLMs cannot figure that one out

Can that be done in ts or is it DE only?

ExoGuid
ExoGuidAnswer
Honored Contributor
May 13, 2025

Yes.

this.entity.interactionMode.set(EntityInteractionMode.Physics);

this.entity.interactionMode.set(EntityInteractionMode.Grabbable);

this.entity.interactionMode.set(EntityInteractionMode.Both);

 

but strangely not "none".  I workaround this by setting it back to Grabbable and setting whocangrab to no one

2 replies

ExoGuid
ExoGuidAnswer
Honored Contributor
May 13, 2025

Yes.

this.entity.interactionMode.set(EntityInteractionMode.Physics);

this.entity.interactionMode.set(EntityInteractionMode.Grabbable);

this.entity.interactionMode.set(EntityInteractionMode.Both);

 

but strangely not "none".  I workaround this by setting it back to Grabbable and setting whocangrab to no one

InaCentaur
Inspiring
May 13, 2025

that is a useful hack but also i wonder whether the next update would disable that

 

i wish the DE system would expose API in full so there is not such adhoc confusion on which component properties etc work or not when accessed programmatically