简体   繁体   English

Unity3d中的重力翻转(3D)

[英]Fliping gravity in Unity3d(3D)

currently I am working on a concept of a 3d platformer that involves flipping gravity. 目前我正在研究一种涉及翻转重力的3d平台游戏的概念。 the problem is, I cant find any resources that desciribe how to do it in 3d,all of the feedback I see only describes 2d 问题是,我找不到任何资源说明如何在3d中做到这一点,我看到的所有反馈只描述了2d

How do I flip the force of gravity in Unity3d?(Be able to walk on ceiling) 如何在Unity3d中翻转重力?(能够在天花板上行走)

Feedback is appreciated in advanced ;) 反馈意见高级;)

你可以尝试这个:

Physics.gravity = new Vector3(0, 1.0F, 0);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM