Package physx.vehicle

Class PxVehicleSuspensionData

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxVehicleSuspensionData

        protected PxVehicleSuspensionData​(long address)
      • PxVehicleSuspensionData

        public PxVehicleSuspensionData()
    • Method Detail

      • createAt

        public static PxVehicleSuspensionData createAt​(long address)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        Returns:
        Stack allocated object of PxVehicleSuspensionData
      • createAt

        public static <T> PxVehicleSuspensionData createAt​(T allocator,
                                                           NativeObject.Allocator<T> allocate)
        Type Parameters:
        T - Allocator class, e.g. LWJGL's MemoryStack.
        Parameters:
        allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
        allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
        Returns:
        Stack allocated object of PxVehicleSuspensionData
      • destroy

        public void destroy()
      • getMSpringStrength

        public float getMSpringStrength()
        Returns:
        WebIDL type: float
      • setMSpringStrength

        public void setMSpringStrength​(float value)
        Parameters:
        value - WebIDL type: float
      • getMSpringDamperRate

        public float getMSpringDamperRate()
        Returns:
        WebIDL type: float
      • setMSpringDamperRate

        public void setMSpringDamperRate​(float value)
        Parameters:
        value - WebIDL type: float
      • getMMaxCompression

        public float getMMaxCompression()
        Returns:
        WebIDL type: float
      • setMMaxCompression

        public void setMMaxCompression​(float value)
        Parameters:
        value - WebIDL type: float
      • getMMaxDroop

        public float getMMaxDroop()
        Returns:
        WebIDL type: float
      • setMMaxDroop

        public void setMMaxDroop​(float value)
        Parameters:
        value - WebIDL type: float
      • getMSprungMass

        public float getMSprungMass()
        Returns:
        WebIDL type: float
      • setMSprungMass

        public void setMSprungMass​(float value)
        Parameters:
        value - WebIDL type: float
      • getMCamberAtRest

        public float getMCamberAtRest()
        Returns:
        WebIDL type: float
      • setMCamberAtRest

        public void setMCamberAtRest​(float value)
        Parameters:
        value - WebIDL type: float
      • getMCamberAtMaxCompression

        public float getMCamberAtMaxCompression()
        Returns:
        WebIDL type: float
      • setMCamberAtMaxCompression

        public void setMCamberAtMaxCompression​(float value)
        Parameters:
        value - WebIDL type: float
      • getMCamberAtMaxDroop

        public float getMCamberAtMaxDroop()
        Returns:
        WebIDL type: float
      • setMCamberAtMaxDroop

        public void setMCamberAtMaxDroop​(float value)
        Parameters:
        value - WebIDL type: float
      • setMassAndPreserveNaturalFrequency

        public void setMassAndPreserveNaturalFrequency​(float newSprungMass)
        Parameters:
        newSprungMass - WebIDL type: float