0
Not a Bug

!CompareApproximately

Poinball 2 months ago • updated by Lazlo Bonin (Lead Developer) 2 weeks ago 4

I dont know how to resolve this .. is it on your hand ? 

Assertion failed on expression: '!CompareApproximately(aScalar, 0.0F)'
System.Object:lambda_method(Closure, Quaternion, Quaternion, Single)
Ludiq.StaticFunctionInvoker`4:InvokeUnsafe(Object, Object, Object, Object) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Runtime/Reflection/Optimization/StaticFunctionInvoker_3.cs:53)
Ludiq.StaticFunctionInvoker`4:Invoke(Object, Object, Object, Object) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Runtime/Reflection/Optimization/StaticFunctionInvoker_3.cs:34)
Ludiq.Member:Invoke(Object, Object, Object) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Runtime/Reflection/Member.cs:950)
Bolt.InvokeMember:Invoke(Flow)
Bolt.InvokeMember:Enter(Flow)
Bolt.Flow:InvokeDelegate(ControlInput)
Bolt.Flow:Invoke(ControlOutput)
Bolt.Flow:Invoke(ControlOutput)
Bolt.Flow:Run(ControlOutput)
Bolt.EventUnit`1:Run(Flow)
Bolt.EventUnit`1:Trigger(GraphReference, EmptyEventArgs)
Bolt.<>c__DisplayClass14_0:b__0(EmptyEventArgs)
Bolt.EventBus:Trigger(EventHook, EmptyEventArgs)
Bolt.EventMachine`2:TriggerRegisteredEvent(EventHook, EmptyEventArgs)
Bolt.EventMachine`2:TriggerEvent(String)
Bolt.EventMachine`2:FixedUpdate()

Bolt Version:
1.4.3f2
Unity Version:
2018.3.6f1
.NET Version:
Missing Information

Hey Poinball,

Hard to tell without reproduction steps. Can you show me an example graph?

Not a Bug

Hi Poinball,

After some research, it seems like the assertion log occurs because you're setting the rotation to a zero-quaternion, which is illegal. I'm guessing OnlinePlayer_BodyRotation might be the zero-quaternion?

Some references:

https://answers.unity.com/questions/672325/compareapproximately-det-10f-005f.html

https://www.reddit.com/r/Unity3D/comments/54sgcq/compareapproximately_sqrmagnitude_result_10f_error/

In any case, this isn't a Bolt-related bug.