mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 03:19:23 +00:00
Fix for Unity 6 branch
This commit is contained in:
parent
1e0e6449d6
commit
b92d54c162
17 changed files with 36 additions and 80 deletions
|
@ -123,7 +123,7 @@ namespace ml_prm
|
|||
public bool IsReady() => ((m_rigidBody != null) && (collider != null) && (!m_shouldHaveInfluencer || ((m_physicsInfluencer != null) && m_physicsInfluencer.IsReady())));
|
||||
public void SetInfuencerUsage(bool p_state) => m_shouldHaveInfluencer = p_state;
|
||||
|
||||
public void SetColliderMaterial(PhysicMaterial p_material)
|
||||
public void SetColliderMaterial(PhysicsMaterial p_material)
|
||||
{
|
||||
if(collider != null)
|
||||
{
|
||||
|
@ -146,7 +146,7 @@ namespace ml_prm
|
|||
public void SetVelocity(Vector3 p_vec)
|
||||
{
|
||||
if(m_rigidBody != null)
|
||||
m_rigidBody.velocity = p_vec;
|
||||
m_rigidBody.linearVelocity = p_vec;
|
||||
}
|
||||
|
||||
public void SetAngularVelocity(Vector3 p_vec)
|
||||
|
@ -167,7 +167,7 @@ namespace ml_prm
|
|||
{
|
||||
if(m_rigidBody != null)
|
||||
{
|
||||
m_rigidBody.drag = p_value;
|
||||
m_rigidBody.linearDamping = p_value;
|
||||
m_rigidBody.WakeUp();
|
||||
}
|
||||
if(m_physicsInfluencer != null)
|
||||
|
@ -178,7 +178,7 @@ namespace ml_prm
|
|||
{
|
||||
if(m_rigidBody != null)
|
||||
{
|
||||
m_rigidBody.angularDrag = p_value;
|
||||
m_rigidBody.angularDamping = p_value;
|
||||
m_rigidBody.WakeUp();
|
||||
}
|
||||
if(m_physicsInfluencer != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue