Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道我应该为我的玩家角色做些什么。目前他有空闲的姿势,创建了所有的碰撞多边形等。但我希望他在出拳时移动他的手臂多边形。我该怎么做?我在游戏中对所有多边形进行了静态编码。
我正在用 Java 编码,但可以翻译代码。
您应该将他的手臂创建为两个新的身体,并使用旋转关节(每手臂)将它们连接到角色身体。而当他出拳时,使关节的马达使手臂向上移动。