Implement isAnchor basics properties + fix IsRigidbody

This commit is contained in:
Eric NGUYEN 2022-08-12 14:15:40 +02:00
parent 42d6d30763
commit 0b41f7ac2c
10 changed files with 89 additions and 31 deletions

View file

@ -0,0 +1,23 @@
/**
* @module AnchorBehavior
*
* An anchor is a container that takes physical priority in the representation :
* - It cannot be moved by other rigid siblings container
* - It cannot be resized by any other siblings container
* - It cannot overlap any other siblings rigid container :
* - overlapping container are shifted to the nearest available space/width
* - or resized when there is no available space left other than theirs
* - or lose their rigid body properties when there is no available space left)
* Meaning that:
* - Moving an anchor container will resize the width of an overlapping container
* or make them lose their property as a rigid body
*/
/**
* Impose the container position
* Apply the following modification to the overlapping rigid body container :
*
*/
export function ImposePosition(){
}