Forum Discussion

InaCentaur's avatar
8 months ago
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?

  • 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

  • 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

  • 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