-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: virtual cam components iteration (#219)
* Removed the currently ignored 'fromEntity' / 'toEntity' suggestions in 'CameraTransition' * Made 'MainCamera.VirtualCameraEntity' releasable with 'undefined' instead of '0' by making the field 'optional' * Made 'VirtualCamera.DefaultTransition' as 'optional' and not mandatory so that a 'VirtualCamera.Create(entity)' is accepted and can still be used with a default instant/cut transition
- Loading branch information
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
9 changes: 4 additions & 5 deletions
9
proto/decentraland/sdk/components/common/camera_transition.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
syntax = "proto3"; | ||
package decentraland.sdk.components.common; | ||
|
||
// Defines the transition used towards the camera that contains the CameraTransition. | ||
// This structure may be updated in the future to specify from/to entities and to have easing functions. | ||
message CameraTransition { | ||
optional uint32 from_entity = 1; | ||
optional uint32 to_entity = 2; | ||
oneof transition_mode { | ||
float time = 3; | ||
float speed = 4; // meters per second; e.g. speed 1 -> 1 meter per second | ||
float time = 1; | ||
float speed = 2; // meters per second; e.g. speed 1 -> 1 meter per second | ||
} | ||
// EasingFunction easing_function = 5; // enable in the future | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters