碰撞检测帮助 [英] Collision detection help
问题描述
从线程复制了这段代码
也不确定wat是否属于此类别,因为我找不到xna部分
also not sure wat are this belongs in as i cant find the xna section
Vector3 minv1 = 新 Vector3 (playerx,playery,0);
Vector3 minv1 = new Vector3(playerx, playery, 0);
Vector3 minv2 = 新 Vector3 (杠杆,杠杆,0);
Vector3 minv2 = new Vector3(leverx, levery, 0);
Vector3 maxv1 = 新 Vector3 (playerx + 50,playery + 50,0);
Vector3 maxv1 = new Vector3(playerx + 50, playery + 50, 0);
Vector3 maxv2 = 新 Vector3 (杠杆+ 25,杠杆+ 25,0);
Vector3 maxv2 = new Vector3(leverx + 25, levery + 25, 0);
Rplayer.Min = minv1;
Rplayer.Min = minv1;
Rlever.Min = minv2;
Rlever.Min = minv2;
Rplayer.Max = maxv1;
Rplayer.Max = maxv1;
Rlever.Max = maxv2;
Rlever.Max = maxv2;
如果 (Rplayer.Intersects(Rlever))
if (Rplayer.Intersects(Rlever))
{
此 .Content.Load< >( " Images/Colour Key(1 Door)" );
this.Content.Load<Texture2D>("Images/Colour Key(1 Door)");
}
无论我在哪里放置代码,总会有1个或多个出现相同错误的代码,如果放入更新功能,则会出现以下错误4次无法分配给最小",因为这是一种方法"组""
however no matter where i drop the code there is always 1 or more pieces that give the same error, if dropped into the update function the following error appears 4 time "Cannot assign to 'Min' because it is a 'method group'"
所以不知道发生了什么事:S
so yea have no idea whats going on :S
推荐答案
您应该在该论坛上发布您的问题.该论坛上的大多数参与者没有图书馆.
You should post your question on that forum. Most participants on this forum do not have the library.
这篇关于碰撞检测帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!