Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
►
Terraria
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
◆
Collision_MoveStardustCell()
void
Terraria.NPC.Collision_MoveStardustCell
(
bool
fall
,
Vector2
cPosition
,
int
cWidth
,
int
cHeight
)
inline
private
Definition at line
89469
of file
NPC.cs
.
89470
{
89471
velocity
= Collision.TileCollision(
cPosition
,
velocity
,
cWidth
,
cHeight
,
fall
,
fall
);
89472
if
(
velocity
!=
oldVelocity
)
89473
{
89474
if
(
velocity
.
X
!= 0f &&
velocity
.
X
!=
oldVelocity
.
X
)
89475
{
89476
velocity.X = (0f -
oldVelocity
.
X
) * 0.8f;
89477
}
89478
if
(
velocity
.
Y
!= 0f &&
velocity
.
Y
!=
oldVelocity
.
Y
)
89479
{
89480
velocity.Y = (0f -
oldVelocity
.
Y
) * 0.8f;
89481
}
89482
}
89483
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.Entity.velocity
Vector2 velocity
Definition
Entity.cs:16
Terraria.Entity.oldVelocity
Vector2 oldVelocity
Definition
Entity.cs:20
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:14
Microsoft.Xna.Framework.Vector2.Y
float Y
Definition
Vector2.cs:17
References
Terraria.Collision.TileCollision()
.
Terraria
NPC
Generated by
1.10.0