Odd Behavior
See original GitHub issueCan anyone possibly shed light on what’s going on here?
I have an EventSystem that takes in mouseEventEntity’s that at the least have a ScreenPointComponent which holds a Vector3 position which gets the Input.mousePosition.
public void Initialize()
{
dragEntityGroup = inputContext.GetGroup(InputMatcher.AnyOf(
InputMatcher.DragSelectionMouseButtonDown,
InputMatcher.DragSelectionMouseButtonHeld
));
}
protected override void Execute(List<InputEntity> entities)
{
InputEntity mouseEventEntity = entities.SingleEntity();
ScreenPointComponent mousePosition = new ScreenPointComponent();
mousePosition.position = mouseEventEntity.screenPoint.position;
in the above code and proceeding
//example
if (mouseEventEntity.isLeftMouseButtonHeld
&& !mouseEventEntity.isLeftMouseButtonDown)
{
if (dragEntity.hasDragSelectionMouseButtonHeld)
{
dragEntity.ReplaceDragSelectionMouseButtonHeld(mousePosition);
if I dont specifically instantiate and set mousePosition as a new ScreenPointComponent and instead use mouseEventEntitiy.screenPoint the results are very odd:
again the only dfference is the first (desired) example creates a new Entity and assigns it an existing component and the second uses the existing component. You can see it lags behind the cursor greatly especially at lower speeds.
Thanks for any assistance!
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Oppositional defiant disorder (ODD) - Symptoms and causes
Emotional and behavioral symptoms of ODD generally last at least six months. They include angry and irritable mood, argumentative and defiant ...
Read more >Oppositional Defiant Disorder (ODD): Symptoms & Treatment
Oppositional defiant disorder (ODD) is a condition in which your child displays a pattern of uncooperative, defiant and angry behavior ...
Read more >What Is ODD or Oppositional Defiant Disorder?
Oppositional defiant disorder (ODD) is diagnosed in kids who are unusually angry, throw tantrums, don't follow rules, or purposefully harm ...
Read more >Oppositional Defiant Disorder - Mental Health
Oppositional defiant disorder (ODD) is a behavior disorder in which a child displays a pattern of an angry or cranky mood, defiant or ......
Read more >Oppositional Defiant Disorder
In children with Oppositional Defiant Disorder (ODD), there is an ongoing pattern of uncooperative, defiant, and hostile behavior toward authority figures ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Updated my repo to eliminate this awefulness 😃
I will see who added this example project and will let him/her know