Pinning implementation complete
This commit is contained in:
1 parent
21c22bf4a5
commit
c5e6d55fc0
4 files changed
+172
-32
No files matched your search
@@ -19,7 +19,7 @@ function newFloatingObject () {
|
||||
rawMass: 0, // This is the mass value without zoom.
|
||||
rawRadius: 0, // This is the radius of this floating object without zoom.
|
||||
targetRadius: 0, // This is the target radius of the floating object with zoom applied. It should be animated until reaching this value.
|
||||
isPinned: undefined,
|
||||
isPinned: false,
|
||||
pinToggle: pinToggle,
|
||||
physics: physics,
|
||||
initializeMass: initializeMass,
|
||||
@@ -104,6 +104,7 @@ function newFloatingObject () {
|
||||
} else {
|
||||
thisObject.isPinned = false
|
||||
}
|
||||
return thisObject.isPinned
|
||||
}
|
||||
|
||||
function physics () {
|
||||
|
||||
Reference in new issue
Block a user