generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Rotational Matrix or Euler Angles?

Previous Thread :: Next Thread 
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
18 Oct 2013 09:10 AM
I only have 27 kB of RAM, and each number costs 18B of RAM, my question is, should I use Rotational Matrix or Euler Angles?
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
18 Oct 2013 09:22 AM
2D or 3D and what is this 18B you speak of
Report Abuse
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
18 Oct 2013 09:23 AM
18B is 18 bytes, and 3D.
Report Abuse
RaidenJPN is not online. RaidenJPN
Joined: 22 May 2013
Total Posts: 6920
18 Oct 2013 09:30 AM
How in the hell do you only have 27kB of remaining RAM?

Do u evn shutdown?
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
18 Oct 2013 09:32 AM
[ Content Deleted ]
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
18 Oct 2013 09:39 AM
1 number = 18 bytes

wat



Anyways:
-Euler angles for compact storage (cant do any useful operations on them really)
-Matrices for converting between coordinate spaces (which is needed in a lot of stuff)
-Quaternions for interpolating between 2 rotations and also for compact storage. I dont know if quaternions can move stuff between coordinate spaces (when it involves translation and not only rotation)

I would use quaternions over euler angles unless too lazy to deal with the math. But youll need matrices most likely.

If you do a reasonable amount of operations on the rotations it might make sense to just store matrices since if you continuously convert from quaternion to matrix it might cost too much processing power.
Report Abuse
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
18 Oct 2013 09:40 AM
"27 kB of RAM," not "27 kB of remaining RAM." 27 kB is the most the system has.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
18 Oct 2013 09:41 AM
And you can always use some self made format as in;
{
yDir=(0,1,0)
xDir=(1,0,0)
}

and use cross product to get Z every time.

:P
Report Abuse
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
18 Oct 2013 09:47 AM
Radio, I agree, aside from that, Rotational Matrix is redundant.
Report Abuse
MasterDesigner is not online. MasterDesigner
Joined: 07 Mar 2010
Total Posts: 3915
18 Oct 2013 02:45 PM
I'm just impressed you can script on a potato battery hooked to a monitor.
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
18 Oct 2013 02:52 PM
MasterDesigner, it is probably a programmable SOC called an arduino :p

I would suggest using 32 bit floating bit floating point rather than 64 bit. 16 bit isn't very accurate, but it might work. I don't think arduino's hardware supports it, you would probably have to make soft-floats for 16 bit rather than hard-floats. I would suggest using roll, pitch and yaw rather than Euler Angles. It might be a bit easier to make and manipulate.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image