Welcome,
Guest
. Please
login
or
register
.
February 16, 2025, 11:42:48 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
TNet 3 Support
»
Failed to read past end of stream error
« previous
next »
Print
Pages: [
1
]
Author
Topic: Failed to read past end of stream error (Read 4777 times)
pretender
Full Member
Thank You
-Given: 1
-Receive: 0
Posts: 155
Failed to read past end of stream error
«
on:
March 12, 2013, 08:31:37 AM »
i am trying to update camera distance with this code but i get Failed to read past end of stream error what i am doing wrong?:
void
Apply
(
)
{
if
(
smoothMotion
)
{
distance
=
Mathf
.
Lerp
(
distance, IdealDistance, Time
.
deltaTime
*
smoothZoomSpeed
)
;
yaw
=
Mathf
.
Lerp
(
yaw, IdealYaw, Time
.
deltaTime
*
smoothOrbitSpeed
)
;
pitch
=
Mathf
.
Lerp
(
pitch, IdealPitch, Time
.
deltaTime
*
smoothOrbitSpeed
)
;
}
else
{
distance
=
IdealDistance
;
yaw
=
IdealYaw
;
pitch
=
IdealPitch
;
}
if
(
smoothPanning
)
panOffset
=
Vector3
.
Lerp
(
panOffset, idealPanOffset, Time
.
deltaTime
*
smoothPanningSpeed
)
;
else
panOffset
=
idealPanOffset
;
transform
.
rotation
=
Quaternion
.
Euler
(
pitch, yaw,
0
)
;
transform
.
position
=
(
target
.
position
+
panOffset
)
-
distance
*
transform
.
forward
;
tno
.
Send
(
2
, Target
.
OthersSaved
, distance
)
;
}
[
RFC
(
2
)
]
void
UpdateDistance
(
float
d
)
{
distance
=
d
;
}
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Failed to read past end of stream error
«
Reply #1 on:
March 14, 2013, 12:59:35 AM »
If 'distance' is a float, then you likely have another RFC(2) somewhere.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
TNet 3 Support
»
Failed to read past end of stream error