cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to manipulate static entity (setinteraction)

InaCentaur
Member

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Exo_Guid
Member

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

View solution in original post

2 REPLIES 2

Exo_Guid
Member

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
Member

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