Skip to content

Releases: jaipack17/Nature2D

Engine:SetSimulationSpeed() & Documentation

20 Oct 06:13
Compare
Choose a tag to compare

Engine:SetSimulationSpeed() & Documentation

  • Updated API-References for RigidBodies, Constraints, Points and Engine in response to this and previous updates.
  • Documented source code with comments.
  • Better error handling and error messages
  • Fixed Engine:SetPhysicalProperty() bug where updating a physical property before creating a rigidbody did not change the properties for the rigidbody.
  • Added new Methods to Engine
    • Engine:SetSimulationSpeed()

Custom Point Support, Configuration Methods and More!

18 Oct 11:39
fa18b93
Compare
Choose a tag to compare

Custom Point Support, Configuration Methods and More!

  • Installation through Wally! Nature2D can now be installed using Wally, the package manager for Roblox.
  • Bug Fixes
    • Linked Issue: #1
  • CreateCanvas() now has an optional 'frame' parameter to help render custom points and constraints.
  • Refactored certain segments of code for better readability.
  • Added Custom Point support to Engine
    • Engine:CreatePoint()
    • Engine:GetPoints()
  • Added new Configuration methods to Constraints
    • Constraint:Stroke()
  • Added new Configuration methods to Points
    • Point:SetRadius()
    • Point:Stroke()
    • Point:Snap()

Improvements & New Methods

17 Oct 06:11
ce9383c
Compare
Choose a tag to compare

Improvements & New Methods

Slowly improving custom Constraints support.

  • Improved architecture for anchored RigidBodies.
  • Constraints now have their own unique IDs like RigidBodies.
  • Added new Methods to Constraints
    • Constraint:GetLength()
    • Constraint:Destroy()
  • Added new Methods to Engine
    • Engine:GetConstraints()
    • Engine:GetConstraintById()
  • Added new Methods to RigidBodies
    • RigidBody:SetFriction()
    • RigidBody:SetGravity()