C
C#3mo ago
HouseAdmin

Syntax for c# to do this?

c#
public override void _PhysicsProcess(double delta)
{
if (DetectCollision(Player, Floor))
{
Player.position
}
}
c#
public override void _PhysicsProcess(double delta)
{
if (DetectCollision(Player, Floor))
{
Player.position
}
}
How do i access the Player.position here in c#?
10 Replies
blueberriesiftheywerecats
$details
MODiX
MODiX3mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
blueberriesiftheywerecats
Is this unity?
HouseAdmin
HouseAdmin3mo ago
Godot
Kouhai
Kouhai3mo ago
It's probably, Player.Position?
Denis
Denis3mo ago
Try the Godot discord community Or the brackeys community
Pobiega
Pobiega3mo ago
You may or may not ever read this, but I must stress how important it is that you include information such as Godot/Unity/whatever in your opening post, and include as much detail as possible. Also, be aware that this is not a gamedev discord, this is a C# discord. We know C#. Some of us may also know Godot/Unity specific things, but most do not.
Jimmacle
Jimmacle3mo ago
assuming Player is in scope, then just like that if it doesn't work, you need to provide more information
HouseAdmin
HouseAdmin3mo ago
Oh i see, Thanks be to GOD random person
Jimmacle
Jimmacle3mo ago
did you ask if it would work before actually trying it?
Want results from more Discord servers?
Add your server