Implement isAnchor basics properties + fix IsRigidbody
This commit is contained in:
parent
42d6d30763
commit
0b41f7ac2c
10 changed files with 89 additions and 31 deletions
23
src/Components/Editor/Behaviors/AnchorBehaviors.ts
Normal file
23
src/Components/Editor/Behaviors/AnchorBehaviors.ts
Normal 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(){
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue