添加浮力脚本
This commit is contained in:
@@ -7,7 +7,7 @@ namespace NBF
|
||||
[SerializeField] private Rigidbody _rbody;
|
||||
|
||||
[SerializeField] private ConfigurableJoint joint;
|
||||
[SerializeField] private Buoyancy _buoyancy;
|
||||
// [SerializeField] private Buoyancy _buoyancy;
|
||||
public Rigidbody rbody => _rbody;
|
||||
|
||||
public void SetJoint(Rigidbody rb)
|
||||
@@ -27,7 +27,7 @@ namespace NBF
|
||||
public void SetDetectCollisionEnabled(bool en)
|
||||
{
|
||||
_rbody.detectCollisions = en;
|
||||
_buoyancy.EnablePhysics(en);
|
||||
// _buoyancy.EnablePhysics(en);
|
||||
}
|
||||
|
||||
public void SetVelocity(Vector3 velocity)
|
||||
|
||||
Reference in New Issue
Block a user